Write the base C function atoi(char* string) without using the built in transformation functions.
Anonymous
int atoi(const char* string) { int res = 0; while (*string) { res = res * 10 + (*string) - '0'; ++string; } return res; }
Check out your Company Bowl for anonymous work chats.