home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16094 < prev    next >
Encoding:
Text File  |  1992-11-11  |  889 b   |  32 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: stream method zapeof ???
  5. Message-ID: <1992Nov11.161511.4730@taumet.com>
  6. Keywords: stream zap eof
  7. Organization: TauMetric Corporation
  8. References: <1992Nov10.142246.15790@netcom.com>
  9. Distribution: usa
  10. Date: Wed, 11 Nov 1992 16:15:11 GMT
  11. Lines: 19
  12.  
  13. miro@netcom.com (Miro Systems) writes:
  14.  
  15. >In InterViews there is a stream method:
  16. >     int zapeof(char*)
  17. >Gnu's g++ library does not have this method.
  18. >Could some kind soul please tell me what zapeof is suppose to do so that
  19. >I can write a work around.
  20.  
  21. The intent of the nonportable macro "zapeof" is to convert something
  22. that might otherwise look like an EOF to a char value.
  23.  
  24. You can use this macro:
  25.  
  26.     #define zapeof(i) ((unsigned char)(i))
  27.  
  28. -- 
  29.  
  30. Steve Clamage, TauMetric Corp, steve@taumet.com
  31. Vice Chair, ANSI C++ Committee, X3J16
  32.