This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B19: fread bug (NT and 95)


Hi...

   I found a bug with the fread instruction... In the C codes that I
wrote, the fread instruction, not reads all the bytes of the image that
I try to read... For example, when I execute the program "hola.c" that I
include with this e-mail, and I try to read the image "lenna.dat" (64
kb), hola.exe only reads 28 bytes of lenna.dat. What's the matter ?...

   best regards...


Gonzalo Rojas C
Image Processing Group
Department of Physics
University of Santiago-Chile



hola.c

lenna.dat

begin:          vcard
fn:             Gonzalo Rojas
n:              Rojas;Gonzalo
org:            SALUMAX S. A.
adr:            Luis Thayer Ojeda 0180, Of. 601;;Providencia;Santiago;;;CHILE
email;internet: salumax@entelchile.net
title:          System Manager, Gerente de Informatica
tel;work:       (562) 3352596
tel;fax:        (562) 3350642
tel;home:       (562) 2292145
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]