ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
atoi.cpp
Go to the documentation of this file.
1 
9 #include <sstream>
10 using std::istringstream;
11 
12 #include <fvar.hpp>
13 
20 int atoi(adstring& s)
21 {
22  istringstream is((char*)s);
23  int i = 0;
24  is >> i;
25  return i;
26 }
int atoi(adstring &s)
Returns a integer converted from input s.
Definition: atoi.cpp:20
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.