Guest User

Untitled

a guest
Oct 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(int argc, const char *argv[])
  5. {
  6. char str[] ="cmd,rcdm,ddcm,mmcd,info";
  7. char *pch;
  8. pch = strtok (str,",");
  9.  
  10. while (pch != NULL)
  11. {
  12. printf ("%s\n",pch);
  13. pch = strtok (NULL, " ,.-");
  14. }
  15.  
  16. return 0;
  17. }
Add Comment
Please, Sign In to add comment