🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #731

Re: question about get_line implementation.

#731
From: Ben Pfaff
Date: Wed, 02 Sep 1998 00:00
14 lines
1396 bytes
"Centaury" <utopian@hehe.com> writes:

   After testing with a driver, I found out that it did the job, but it returns
   extra funny characters which are always the same character type. I suspect
   that it is CR or FF. Can anyone confirm this? If that is the case, how
   should I logically combine '\r' with '\n' as a testing condition in the
   while loop?

The character is probably EOF.  Show us your code.
-- 
(supporter of the campaign for grumpiness where grumpiness is due in c.l.c)

Please: do not email me copies of your posts to comp.lang.c
        do not ask me C questions via email; post them instead
Technical Details
Message-ID: <87btoyij7w.fsf@dial1.msu.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35e70268.0@news2>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1014db,11de81bc1593f087
X-Google-Attributes: gid1014db,public
X-Google-Thread: 106434,11de81bc1593f087
X-Google-Attributes: gid106434,public
X-Google-Thread: 10f67c,11de81bc1593f087
X-Google-Attributes: gid10f67c,public
X-Google-Thread: 114592,11de81bc1593f087
X-Google-Attributes: gid114592,public
From: Ben Pfaff <pfaffben@pilot.msu.edu>
Subject: Re: question about get_line implementation.
Date: 1998/09/02
Message-ID: <87btoyij7w.fsf@dial1.msu.edu>
X-Deja-AN: 387168845
Sender: blp@smaug
References: <35e70268.0@news2>
X-AUTHid: pfaff
Organization: Michigan State University
Reply-To: pfaffben@pilot.msu.edu
Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,fj.lang.c,it.comp.lang.c