urjlew@ecsvax.UUCP (Rostyk Lewyckyj) (09/04/86)
[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@ecsvax.uucp