www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/15/23:19:22

From: "Henri Ossi" <henri DOT ossi AT mail DOT htk DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Fopen() and EOF
Date: Wed, 15 Apr 1998 18:58:41 +0300
Organization: Telecom Finland News Service
Lines: 18
Message-ID: <6h2ljv$72g$1@hiisi.inet.fi>
NNTP-Posting-Host: pc2039.public.htk.fi
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm trying to read a pic, which is raw data. (pixel color from 0 to 255)
So the pixel color is used as the ASCII number.

But if the pixel is 26, fopen reads the character, which is Ctrl-Z, as EOF.

There must be a way to round this.
Re-define EOF?
Maybe inline asm?
Or other file reading functions?

Thanks.

-Henri Ossi




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019