#include #include #include #define MAX 1000 /* A typical C List */ int main (int argc, char **argv) { struct list { char *string; struct list *puntnext; }; typedef struct list LIST; LIST *head=NULL; LIST *new=NULL; LIST *current=NULL; int count,stop; char input[MAX]; stop=atoi(argv[1]); for(count=0; countstring=(char *)malloc(sizeof(char) *strlen(input)); strcpy(new->string,input); new->puntnext=head; head=new; } current=head; while(current!=NULL ){ printf("%s",current->string); current=current->puntnext; } }