delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/19/10:22:34

From: derethor AT redestb DOT es (Javier Loureiro Varela)
Newsgroups: comp.os.msdos.djgpp
Subject: files and Djgpp
Date: Mon, 16 Jun 1997 04:25:50 GMT
Organization: Centolos
Lines: 19
Message-ID: <33a4bf36.4789992@news.redestb.es>
NNTP-Posting-Host: ppp147.81.redestb.es
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

	Why this call doesn't read all file?

	fread(buffer, sizeof(unsigned char), 64000, file);

	I open my file using:

	file = fopen(argv[1], "r");

	If I use _read(), it seems to work, but I need to use fread...

	Any suggestion?

--
        Signed,
               Derethor/Centolos

http://www.redestb.es/personal/derethor/
email: derethor AT redestb DOT es

- Raw text -


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