🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2647

Re: Is this a bug in Quick C?

#2647
From: Lars Henrik Mathiesen
Date: Fri, 29 Mar 1991 22:05
25 lines
1789 bytes
Doug Gwyn (gwyn@smoke.brl.mil) writes:
>In article <s64421.668684042@zeus> s64421@zeus.usq.EDU.AU (house ron) writes:

>>The idea is to have the newline typed after the number put into c.
>>However, Quick C version 2.5 requires that the user type TWO newlines
>>before any output is produced.

>Assuming that that behavior persists after you change the program to be
>strictly conforming to the C standard, it would be an error in the
>Quick C implementation, rendering it not standard conforming.

I assume you refer to the discussion in section 7.9.3 (Library,
Input/Output <stdio.h>, Files). If stdin is interactive, it cannot be
fully buffered in a conforming implementation. There is some wording
about how characters "are intended to" be transmitted to and from the
host environment under the various buffering schemes, but that part
seems to be very careful not to promise anything.

If the Standard was intended to bind conforming implementations on the
exact behaviour of line buffered input from terminals, it should come
out and say so.

--
Lars Mathiesen, DIKU, U of Copenhagen, Denmark      [uunet!]mcsun!diku!thorinn
Institute of Datalogy -- we're scientists, not engineers.      thorinn@diku.dk
Technical Details
Message-ID: <1991Mar29.220525.3927@odin.diku.dk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!kodak!uupsi!sunic!dkuug!diku!thorinn
References: <s64421.668684042@zeus> <15440@smoke.brl.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!caen!zaphod.mps.ohio-state.edu!ub!uhura.cc.rochester.edu!rochester!kodak!uupsi!sunic!dkuug!diku!thorinn
From: thorinn@diku.dk (Lars Henrik Mathiesen)
Newsgroups: comp.std.c
Subject: Re: Is this a bug in Quick C?
Message-ID: <1991Mar29.220525.3927@odin.diku.dk>
Date: 29 Mar 91 22:05:25 GMT
References: <s64421.668684042@zeus> <15440@smoke.brl.mil>
Sender: news@odin.diku.dk (Netnews System)
Organization: Department of Computer Science, U of Copenhagen
Lines: 25