From: Joe Wright Newsgroups: comp.os.msdos.djgpp Subject: Re: Strings Date: Sat, 06 Mar 1999 21:14:26 -0500 Organization: PC Access Lines: 20 Message-ID: <36E1E102.2205@infi.net> References: <7brab6$cts$1 AT news3 DOT infoave DOT net> <36e13576 DOT 0 AT news DOT uni-bielefeld DOT de> <7bsgti$8ic$1 AT news3 DOT infoave DOT net> <7bsma6$ckk$1 AT news3 DOT infoave DOT net> NNTP-Posting-Host: pm4-1-s3-72.orf.infi.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.03Gold (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Paganini wrote: > > I did a little more research, and I wasn't too far off...this is what works > with DJGPP, and it is correct according to the standard... > > #include > ... > getline(, ); > ... Guess again. There is no header and there is no function getline(). To get a text 'line' from a given stream, fgets() is usually the Standard function of choice. It is declared in stdio.h and does all the 'right' things. -- Joe Wright mailto:conserv3 AT infi DOT net "Everything should be made as simple as possible, but not simpler." --- Albert Einstein ---