ADMB Documentation  11.1.2274
 All Classes Files Functions Variables Typedefs Friends Defines
atoi.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: atoi.cpp 1989 2014-05-19 20:11:19Z johnoel $
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 }