>Hi Carol, > >Now , I have come to know that Ctrl-D doesnot generate a signal but signals >EOF. >So , i made the following changes in the code again. > >************************************************************************************************* > >char *getresponse(char *oldval) > { > char resp[MAX_INPUT_LEN]; > char *retval = NULL; > int resplen; > char c; > c=getchar();
getchar() returns an "int" and so "c" must be of type "int". Casper