String tokenizer

if i am calling strtok(s,’ ');
then second time calling strtok(Null, ’ ');
i am declared a function
mystrtok(char *str,char delim)
{
if(str!=null)
{
input=str;
}
but second time i am pass null then how to read other words…

You can use this and try to implement what you are having doubt in.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.