Another pointer size problem
    Mark Brader 
    ntt at dciem.UUCP
       
    Tue Feb 28 03:17:35 AEST 1984
    
    
  
     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.]
    
    
More information about the Comp.unix.wizards
mailing list