* Extract first token in string str that is delimited by a character in tokens. * Destroys str, eliminates the token delimiter and uses global state. * @param str A pointer to the string to tokenize. * @param delim A pointer to an array of characters that delimit the token * @return Pointer to token */
| 542 | * @return Pointer to token |
| 543 | */ |
| 544 | char *strtok(char *str, const char *delim) |
| 545 | { |
| 546 | static char *strtok_ptr; |
| 547 | |
| 548 | return strtok_r(str, delim, &strtok_ptr); |
| 549 | } |
| 550 | |
| 551 | /* errno isn't actually used anywhere other than perror() below, and just here |
| 552 | for compatibility with libc-targeting code wanting to incidentally print it. */ |
nothing calls this directly
no test coverage detected