Header files: #include <string.h>
Define function: char * strtok (char *s, const char *delim);
Function Description: Strtok () is used to split a string into fragments. The parameter S points to the string to be split, the parameter Delim is the split string, and when Strtok () discovers the split character of the parameter Delim in the string of the parameter s, the character is changed to the \ = character. At the first call, Strtok () must give the parameter S string, and the subsequent call sets the parameter s to null. Each successful call returns the next segmented string pointer.
Return value: Returns the next segmented string pointer, or null if no partition has been made.
Additional:
C language function manual:
Http://c.biancheng.net/cpp/html/175.html
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
C-Language string segmentation function (Strtok ())