Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!cass.ma02.bull.com!mips2!bull.bull.fr!corton!mcsun!sunic!news.funet.fi!funic!nic!vinsci From: vinsci@nic.funet.fi (Leonard Norrgard) Newsgroups: comp.sys.amiga.programmer Subject: Re: GCC - No gets()!!!!!!!! Message-ID: Date: 19 May 91 20:25:26 GMT References: <1991May17.135410.20757@bernina.ethz.ch> Sender: vinsci@nic.funet.fi (Leonard Norrgard) Distribution: comp Organization: Soft Service, Inc. Lines: 28 In-Reply-To: wild@nessie.cs.id.ethz.ch's message of 17 May 91 13:54:10 GMT In article <1991May17.135410.20757@bernina.ethz.ch> wild@nessie.cs.id.ethz.ch (Markus Wild) writes: In article lord_zar@ucrmath.ucr.edu (wayne wallace) writes: >Prob: GCC is missing gets() from the include files! I assume everyone knows >how painful getting input becomes with only scanf() and fscanf() and getc(). Hey, you can't just blaim GCC for that! Gcc as it is distributed by the FSF comes only with a VERY limited set of header files, stdarg.h comes to mind. Gcc really relies on the fact that you're going to replace your 'system' cc with it, so it can continue to use that environment. There is a gnu library (and whence header files) under construction, but there is no official release yet. You probably want to use the PDC headers/libraries, or the the PDC ones hacked over severly by Ray Burr (Was it you Ray? I know it's someone of your group;-)). You should find this stuff where you got your copy of gcc from. -Markus BTW: extern char* gets(char *); Just try it, the library should contain it, even if it doesn't show up in the header files. Well, *I* for one, do not miss gets() and in my opinion it shouldn't be included in any library at all since you can't specify a maximum buffer length that it is allowed to use. Instead, use fgets() (with stdin as the file) that's the safe way to go. Anyone remember the internet worm? Remember anyone recompiling software *without* gets()? -- Leonard