home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / g / lib / bug / 444 < prev    next >
Encoding:
Text File  |  1992-07-25  |  727 b   |  24 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!compuserve.COM!75030.631
  3. From: 75030.631@compuserve.COM (gail slemon, expersoft)
  4. Subject: iostream handling of NULL char*
  5. Message-ID: <920724195151_75030.631_CHG132-2@CompuServe.COM>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Fri, 24 Jul 1992 19:51:52 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 11
  12.  
  13. Hi!
  14.      Our application died when trying to write a NULL char *
  15. using the ostream << operator.  Since this code has survived
  16. compilation using several cfront based compilers, I ended up
  17. adding a check for NULL to ostream& operator<< (ostream& stream,
  18. const char *s) in iostream.C.  Is this uncool?
  19.  
  20.     Thanks!
  21.     Gail
  22.  
  23.  
  24.