Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. char *str = "hello world everyone!";
  2. Char *tok = strtok(str, ' ');
  3.  
  4. while(tok != null) {
  5.    printf("-%s-", tok);
  6.    tok = strtok(NULL, ' ');
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement