Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int main()
- {
- static char *buf,*p;
- p = (char*)malloc(20*sizeof(char));
- buf = p;
- scanf("%s",buf);
- while(buf[0] != '\0')
- printf("\n%s\n",buf++);
- free(p);
- buf=NULL;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement