C’s strtok() and read only string literals
What did you initialize the char * to? If something like char *text = “foobar”; then you have a pointer to some read-only characters For char text[7] = “foobar”; then you have a seven element array of characters that you can do what you like with. strtok writes into the string you give it – … Read more