cvs.gedasymbols.org/archives/browse.cgi | search |
Date: | Thu, 16 Apr 1998 10:07:30 +0300 (IDT) |
From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
To: | Henri Ossi <henri DOT ossi AT mail DOT htk DOT fi> |
cc: | djgpp AT delorie DOT com |
Subject: | Re: Fopen() and EOF |
In-Reply-To: | <6h2ljv$72g$1@hiisi.inet.fi> |
Message-ID: | <Pine.SUN.3.91.980416100709.12532I-100000@is> |
MIME-Version: | 1.0 |
On Wed, 15 Apr 1998, Henri Ossi wrote: > 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. You need to open the file in binary mode.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |