read(fd, &y, sizeof(y)) portability

Andrew Koenig ark at rabbit.UUCP
Mon Mar 5 10:08:34 AEST 1984


You are better off writing:

	read (fd, (char *) &y, sizeof (y))

It makes a difference on some machines.



More information about the Comp.unix.wizards mailing list