www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/03/12:06:37

From: Sigurdur Smarason <ssmaraso AT emerald DOT tufts DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: newbie:problem with fread
Date: 3 Oct 1998 15:55:08 GMT
Organization: Tufts University
Lines: 11
Message-ID: <6v5hcs$s0q$1@news3.tufts.edu>
References: <6v4386$c7t$1 AT news3 DOT tufts DOT edu>
NNTP-Posting-Host: emerald.tufts.edu
X-Trace: news3.tufts.edu 907430108 28698 (None) 130.64.1.16
X-Complaints-To: news AT news DOT tufts DOT edu
X-Newsreader: TIN [UNIX 1.3 unoff BETA 970705; alpha OSF1 V4.0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Now if I call each seperately as in:

size=fread(&header.norm_offset,sizeof(header.norm_offset),1,data);
size=fread(&header.extra_records,sizeof(header.extra_records),1,data);
size=fread(&header.num_records,sizeof(header.num_records),1,data);
etc.

it works as it should, but this is rather clumsy in my opinion, is there a
better way ?

- Raw text -


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