/*
 * $Id: atoi.cpp 494 2012-06-13 20:41:16Z johnoel $
 *
 * Author: David Fournier
 * Copyright (c) 2008-2012 Regents of the University of California 
 */
#include <sstream>
using std::istringstream;

#include <fvar.hpp>

int atoi(adstring& s)
{
  istringstream is((char*)s);
  int i;
  is >> i;
  return i;
}
