#include #include 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; }