R
rayw
To filter the 'x' out of this, can I use strtok in a for loop like
below please?
I get an error when I run this, however, I cannot fathom out why.
char c[] = "blahxblah";
char * p;
for(p = "x"; p = strtok(c, p); p = NULL)
{
printf("%s", p);
}
below please?
I get an error when I run this, however, I cannot fathom out why.
char c[] = "blahxblah";
char * p;
for(p = "x"; p = strtok(c, p); p = NULL)
{
printf("%s", p);
}