Guest User

Untitled

a guest
Jul 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <string.h>
  2. #include <stdio.h>
  3.  
  4. int main(int argc, char **argv) {
  5. char *line = strdup(argv[1]);
  6. char *tokctx;
  7. char *keyseq;
  8.  
  9. keyseq = strtok_r(line, " ", &tokctx);
  10.  
  11. printf("Keyseq: %s\n", keyseq);
  12. printf("saveptr %%p: %p\n", tokctx);
  13. printf("saveptr %%s: %s\n", tokctx);
  14.  
  15. return 0;
  16. }
Add Comment
Please, Sign In to add comment