Contact: aviboots(AT)netvision.net.il
40,875 questions
53,283 answers
573 users
#include <stdio.h> #include <string.h> int main(void) { char s[] = "c c++ c# java python"; char *p; p = strtok (s, " "); while (p != NULL) { puts(p); p = strtok (NULL, " "); } return 0; } /* run: c c++ c# java python */
#include <stdio.h> #include <string.h> int main(void) { char s[] = "-c, c++.. c# -java ,php."; char *p; p = strtok (s, " -.,"); while (p != NULL) { puts(p); p = strtok (NULL, " -.,"); } return 0; } /* run: c c++ c# java php */