language: C (gcc-4.7.2)
date: 163 days 18 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
 
        return 0;
}