Statistics
| Revision:

root / trunk / src / tools99 / atoi.cpp @ 1106

History | View | Annotate | Download (266 Bytes)

1
/*
2
 * $Id: atoi.cpp 1106 2013-07-11 20:54:23Z johnoel $
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
#include <sstream>
8
using std::istringstream;
9

    
10
#include <fvar.hpp>
11

    
12
int atoi(adstring& s)
13
{
14
  istringstream is((char*)s);
15
  int i;
16
  is >> i;
17
  return i;
18
}