🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1529

strange behavior with stdio in g++ 1.27

#1529
From: "Douglas C. Schmidt"
Date: Sat, 12 Nov 1988 04:54
26 lines
981 bytes
Hi,

   I'm not sure if this is a g++ bug or a libg++ bug, or a sparc bug,
but in any case, the following program doesn't print anything out
to the screen.  However, if a newline is added, then the line is printed
out.  This is g++ 1.27, running on a sun 4.

----------------------------------------
#include <stdio.h>

void foo ( char *buf ) {
   while ( *buf ) {
      printf ( "%c",*buf );
      buf++;
   }
}

main () {
   foo ( "this line won't print!" );
}
----------------------------------------

thanks,

Doug
Technical Details
Message-ID: <8811112054.aa08897@PARIS.ICS.UCI.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%glacier.ics.uci.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!ORION.CF.UCI.EDU!schmidt%glacier.ics.uci.edu
From: schmidt%glacier.ics.uci.edu@ORION.CF.UCI.EDU ("Douglas C. Schmidt")
Newsgroups: gnu.g++.bug
Subject: strange behavior with stdio in g++ 1.27
Message-ID: <8811112054.aa08897@PARIS.ICS.UCI.EDU>
Date: 12 Nov 88 04:54:55 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26