Hi I use the function strtok to split an array as follows:
char str[] ="one11;one2";
char* pch;
pch = strtok (str,";");
while (pch != NULL)
pch = strtok(NULL, ";");
Now I need to compare my pointer pch with a specific value, let's say:
if (pch == "one11")
// do this
Although I am getting the first part of the string, in this case 'one11' the comparison fails. Is there a way to compare these two things?
Thanks,