How to make the tokenizer detect empty spaces while using strtok()
- by Shadi Al Mahallawy
I am designing a c++ program, somewhere in the program i need to detect if there is a blank(empty token) next to the token used know eg.
if(token1==start)
{
token2=strtok(NULL," ");
if(token2==NULL)
{LCCTR=0;}
else
{LCCTR=atoi(token2);}
so in the previous peice token1 is pointing to start , and i want to check if there is…