#include #include #include #include #include #include #include #include #include int test() { static int a = 2; a += 1; return a; } int main(int argc, char** argv) { test(); char input[] = "A bird came down the walk"; printf("Parsing the input string '%s'\n", input); char *token = strtok(input, " "); while(token) { printf("%s\n", token); token = strtok(NULL, " "); } printf("Contents of the input string now: '"); for(size_t n = 0; n < sizeof input; ++n) input[n] ? printf("%c", input[n]) : printf("\\0"); printf("'"); return 0; }