home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: stream method zapeof ???
- Message-ID: <1992Nov11.161511.4730@taumet.com>
- Keywords: stream zap eof
- Organization: TauMetric Corporation
- References: <1992Nov10.142246.15790@netcom.com>
- Distribution: usa
- Date: Wed, 11 Nov 1992 16:15:11 GMT
- Lines: 19
-
- miro@netcom.com (Miro Systems) writes:
-
- >In InterViews there is a stream method:
- > int zapeof(char*)
- >Gnu's g++ library does not have this method.
- >Could some kind soul please tell me what zapeof is suppose to do so that
- >I can write a work around.
-
- The intent of the nonportable macro "zapeof" is to convert something
- that might otherwise look like an EOF to a char value.
-
- You can use this macro:
-
- #define zapeof(i) ((unsigned char)(i))
-
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-