Path: 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 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 void foo ( char *buf ) { while ( *buf ) { printf ( "%c",*buf ); buf++; } } main () { foo ( "this line won't print!" ); } ---------------------------------------- thanks, Doug