Using strtok on a string literal has been undefined behavior since ANSI C 89.
The standard C library uses const char * almost everywhere where a string is accepted that will not be modified.
Using strtok on a string literal has been undefined behavior since ANSI C 89.
The standard C library uses const char * almost everywhere where a string is accepted that will not be modified.