🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2923

does anybody has a well behave 'ungetc' ?

#2923
From: Minh Tran-Le
Date: Thu, 01 Mar 1990 17:41
11 lines
753 bytes
Does anybody has a version of 'ungetc' that does not try to put back
the character if the character is already in the buffer but just 
decrement the read pointer.
I am trying to get around scanf so that I don't have to put -fwritable-string
with gcc.

Thanks, Tran-Le

arpanet: tranle@intellicorp.com
uucp:   ..sun!icmv!mtranle
-------
Technical Details
Message-ID: <9003011741.AA24775@life.ai.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!INTELLICORP.COM!TRANLE

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!INTELLICORP.COM!TRANLE
From: TRANLE@INTELLICORP.COM (Minh Tran-Le)
Newsgroups: gnu.gcc.bug
Subject: does anybody has a well behave 'ungetc' ?
Message-ID: <9003011741.AA24775@life.ai.mit.edu>
Date: 1 Mar 90 17:41:12 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 11