char* strtok(char* cpString, const char* kcpDelimiters);
#include <cstdio>
#include <cstring>
int main()
{
char caString[] = "Copyright 2009 XoaX";
char caDelim[] = " ";
char* cpSub = strtok(caString, caDelim);;
// Get the next token until, there are no more.
while (cpSub) {
printf("%s \n", cpSub);
cpSub = strtok(NULL, caDelim);
}
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.