Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site dciem.UUCP
Path: utzoo!dciem!ntt
From: ntt@dciem.UUCP (Mark Brader)
Newsgroups: net.unix-wizards
Subject: Re: Another pointer size problem
Message-ID: <744@dciem.UUCP>
Date: Mon, 27-Feb-84 12:17:35 EST
Article-I.D.: dciem.744
Posted: Mon Feb 27 12:17:35 1984
Date-Received: Mon, 27-Feb-84 13:14:33 EST
References: <4102@ukc.UUCP>, <5705@mcvax.UUCP>
Organization: NTT Systems Inc., Toronto, Canada
Lines: 18


     How often do YOU write
     
         read(fd, &y, sizeof(y));
     
     in programs that are supposed to be portable?  I for me prefer using
     the standard I/O library.

-------------------------------------------------------
Doesn't the same thing arise with fread?
Don't you need to say:

	fread ((char *)&y, sizeof y, nitems, stream);

...to be sure the compiler will pass the arguments correctly?

Mark Brader
[I haven't used any machines myself where this would matter.]