C's strtok() and read only string literals
问题 char *strtok(char *s1, const char *s2) repeated calls to this function break string s1 into \"tokens\"--that is the string is broken into substrings, each terminating with a \'\\0\', where the \'\\0\' replaces any characters contained in string s2. The first call uses the string to be tokenized as s1; subsequent calls use NULL as the first argument. A pointer to the beginning of the current token is returned; NULL is returned if there are no more tokens. Hi, I have been trying to use strtok