Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int toRead = atoi(argv[2]);
- int toRead = atoi('1000000')
- int atoi( const char *c )
- {
- int value = 0;
- int sign = 1;
- if( *c == '+' || *c == '-' )
- {
- if( *c == '-' ) sign = -1;
- c++;
- }
- while ( isdigit( *c ) )
- {
- value *= 10;
- value += (int) (*c-'0');
- c++;
- }
- return value * sign;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement