🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #87

iostream handling of NULL char*

#87
From: gail slemon, expersoft
Date: Fri, 24 Jul 1992 19:51
9 lines
746 bytes
Hi!
     Our application died when trying to write a NULL char *
using the ostream << operator.  Since this code has survived
compilation using several cfront based compilers, I ended up
adding a check for NULL to ostream& operator<< (ostream& stream,
const char *s) in iostream.C.  Is this uncool?

	Thanks!
	Gail
Technical Details
Message-ID: <920724195151_75030.631_CHG132-2@CompuServe.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!compuserve.COM!75030.631

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!compuserve.COM!75030.631
From: 75030.631@compuserve.COM (gail slemon, expersoft)
Subject: iostream handling of NULL char*
Message-ID: <920724195151_75030.631_CHG132-2@CompuServe.COM>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 24 Jul 1992 19:51:52 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 11