- Timestamp:
- 04/03/14 21:47:20 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/virtfile/virtfile.h
r206 r211 26 26 virtual int Vwrite(const void *ptr, size_t size, size_t nmemb)=0; 27 27 virtual int Veof()=0; 28 virtual int Vputc(int c) {unsigned char data= c; return (Vwrite(&data,1,1)==1)?data:EOF;}28 virtual int Vputc(int c) {unsigned char data=(unsigned char)c; return (Vwrite(&data,1,1)==1)?data:EOF;} 29 29 virtual int Vputs(const char *s)=0; 30 30 virtual int Vgetc() {unsigned char data; if (Vread(&data,1,1)==1) return data; else return EOF;}
Note: See TracChangeset
for help on using the changeset viewer.