Guest User

Untitled

a guest
Mar 22nd, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. int atoi(const char* str) {
  2. int result = 0;
  3. while (isspace(*str))
  4. str++;
  5. while (isdigit(*str))
  6. result = (result * 10) + (*(str++) - '0');
  7. return result;
  8. }
Add Comment
Please, Sign In to add comment