🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #789

Re: Bug in GCC / OS 2 ??

#789
From: Ralf Wirth
Date: Thu, 13 Aug 1992 11:21
29 lines
1684 bytes
rb532@rbhp17.rbg.informatik.th-darmstadt.de () writes:

>Hi.

Hi!

 ...
 
>(perhaps ther are some syntax Errors now, but this doesn't matter)
>I compile this program with GCC 2.1.
>The result is an executable file.
>I run it, and it asks for input, until I press X, and then prints 
>"begin of program", then prints the digits, and then prints the "end"
>why is this disorder ?


You just have to set the input buffer to 0 bytes. the function is somewhere
in stdio.

-- 
*****************************************************************************
*                                                                           *
* Name: Ralf Wirth                                                          *
* Job : Student of computer science/Wizard of Nightfall (Veltins).          *
* Login : Henry@Aragorn, Henry@Schrottpollo                                 *
* E-Mail Address: Ralf.Wirth@arbi.informatik.uni-oldenburg.de               *
* ------------------------------------------------------------------------- *
* No, I'm not related to him.                                               *
*****************************************************************************
Technical Details
Message-ID: <1992Aug13.112601.5013@arbi.Informatik.Uni-Oldenburg.DE>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!uniol!Ralf.Wirth
References: <1992Aug13.094911.49327@news.th-darmstadt.de>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!Germany.EU.net!uniol!Ralf.Wirth
From: Ralf.Wirth@arbi.informatik.uni-oldenburg.de (Ralf Wirth)
Subject: Re: Bug in GCC / OS 2 ??
Organization: University of Oldenburg, Germany
Date: Thu, 13 Aug 1992 11:21:58 GMT
Message-ID: <1992Aug13.112601.5013@arbi.Informatik.Uni-Oldenburg.DE>
References: <1992Aug13.094911.49327@news.th-darmstadt.de>
Keywords: GCC
Sender: news@arbi.Informatik.Uni-Oldenburg.DE
Lines: 29