#include #include #include int main(void) { char *str = strdup("Hello World"), *tkn; printf("str [%s@%p]\n", str, str); tkn = strsep(&str, " "); printf("tkn [%s] str [%s@%p]\n", tkn, str, str); free(str); return 0; }