xxxxxxxxxx
#include <stdio.h>
#include <string.h>
int main(void) {
char my_string[] = "Hello, world!";
const char delimiter = ' ';
char* token = strtok(my_string, delimiter);
while (token != NULL) {
printf("%s\n", token);
token = strtok(NULL, delimiter);
}
return 0;
}