What is the function strtok() used for? Is this a string handling function? If one uses this function what is the header file one must include in the program.
Printable View
What is the function strtok() used for? Is this a string handling function? If one uses this function what is the header file one must include in the program.
Yes it is a string handling function. You have to include the file string.h while using this function in your program. The syntax of this function is
char *strtok( char *strin1, const char *strin2 );
Norman thanks for your valuable input. I tried this function from the input you gave me and I could get a clear idea of this function.