ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
atoi.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include <sstream>
00008 using std::istringstream;
00009 
00010 #include <fvar.hpp>
00011 
00012 int atoi(adstring& s)
00013 {
00014   istringstream is((char*)s);
00015   int i = 0;
00016   is >> i;
00017   return i;
00018 }