slurpee:~ ph1$ cat lol.c #include #include #include int main() { char *joel = malloc(1337); char *joel_2; int joel_int_1, joel_int_2; strcpy(joel, "1337:31337"); for(joel_2 = joel ; *joel_2 != ':' ; joel_2++); *joel_2++ = 0; joel_int_1 = atoi(joel); joel_int_2 = atoi(joel_2); printf("%d %d\n", joel_int_1, joel_int_2); return 0; } slurpee:~ ph1$ ./a.out 1337 31337 slurpee:~ ph1$