Advertisement
Guest User

Untitled

a guest
Dec 11th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. int main()
  5. {
  6. static char *buf,*p;
  7.  
  8. p = (char*)malloc(20*sizeof(char));
  9.  
  10. buf = p;
  11.  
  12. scanf("%s",buf);
  13.  
  14. while(buf[0] != '\0')
  15. printf("\n%s\n",buf++);
  16.  
  17. free(p);
  18. buf=NULL;
  19.  
  20. system("pause");
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement