2 * Convert a string to an integer.
28 val = val * 10 + (fc - '0');
32 ( '-'@see_neg | '+' )? ( digit @add_digit )+
35 # Inintialize and execute.
43 if ( cs < atoi_first_final )
44 cerr << "atoi: there was an error" << endl;
55 while ( fgets( buf, sizeof(buf), stdin ) != 0 ) {
56 int value = atoi( buf );
57 cout << value << endl;