Dumb question; If I use the code snipit below, what happens if token is NULL ('\0')?
char *token;
token=strtok(buffer,':');
while (token)
{
statement 1;
}
Dumb reply...Why don't you run the code and see for yourself?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.