Guest User

Untitled

a guest
Aug 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. int i, lastwasspace;
  2. i = 0;
  3. lastwasspace = 0;
  4. while (s && *s) {
  5. if (lastwasspace && !(isspace(s))) {
  6. argv[i++] = s;
  7. lastwasspace = 0;
  8. }
  9.  
  10. if (isspace(s)) {
  11. lastwasspace = 1;
  12. s = 0;
  13. }
  14.  
  15. s++;
  16.  
  17.  
  18. }
Add Comment
Please, Sign In to add comment