1 2 3 4 5 6 7 8 9 10 11
#include "internal.h" int strยทatoi(char *s) { int n = 0; while(*s) n = 10*n + (*s++ - '0'); return n; }