Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!akgua!mcnc!ecsvax!urjlew From: urjlew@ecsvax.UUCP (Rostyk Lewyckyj) Newsgroups: net.micro.amiga,net.lang.c Subject: Naive C question Message-ID: <1993@ecsvax.UUCP> Date: Thu, 4-Sep-86 03:11:58 EDT Article-I.D.: ecsvax.1993 Posted: Thu Sep 4 03:11:58 1986 Date-Received: Fri, 5-Sep-86 19:43:25 EDT Distribution: na Organization: UNC Educational Computing Service Lines: 27 Xref: mnetor net.micro.amiga:4553 net.lang.c:5794 [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 ; 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