どこが糞めんどくさいんだ?

int atoi(const char *s)
{
int ret = 0;
while ('0' <= *s && *s <= '9')
ret = 10*ret + *s++ - '0';
return ret;
}