int dalam string c

char s[] = "42";
int num = atoi(s);
Plif Plouf