delorie.com/archives/browse.cgi | search |
From: | Joe Wright <conserv3 AT infi DOT net> |
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: | <n6oPqIA6NS42Ewm8 AT dunvegan1 DOT demon DOT co DOT uk> <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 |
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 <string> > ... > getline(<stream>, <string_var>); > ... Guess again. There is no header <string> 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 ---
webmaster | delorie software privacy |
Copyright � 2019 by DJ Delorie | Updated Jul 2019 |