Naive C question
Rostyk Lewyckyj
urjlew at ecsvax.UUCP
Thu Sep 4 17:11:58 AEST 1986
[This line shouldn't really be nee
I am just beginning to learn C, so this is probably just a
stupid error on my part but perhaps some kind soul will tell
me, why does this simple program does not stop for me to enter
a line of input from the keyboard?
I am using Manx Aztec C68K Version 3.20a on the Amiga.
#include <stdio.h>;
main()
{
char *inln, *gets(), *malloc();
inln=malloc(81);
printf("Enter an input line \n");
gets(inln);
printf("%s\n",inln);
printf("*** End of Job *** \n");
free(inln);
exit(0);
}
Reply-To: Rostyk Lewyckyj urjlew at ecsvax.uucp
More information about the Comp.lang.c
mailing list