Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Favorite pointer tricks in C?. Parent comment
Incidentally I only found this after trying:
char tmp[] = "cat,mat,sat"; char *t; t = strtok(tmp,","); while(t != NULL){ printf("%s\n",t); t = strtok(NULL,","); }
There are no comments on this comment yet.
Incidentally I only found this after trying:
And getting a segfault, as 'tmp' is not writeable memory.