read(fd,&y, sizeof y)

buck%nrl-css at sri-unix.UUCP buck%nrl-css at sri-unix.UUCP
Sun Mar 4 13:45:27 AEST 1984


From:  Joe Buck <buck at nrl-css>

Well, almost. On machines with character pointers of different length and
structure from other pointers (and in all cases, just to please lint)
you should say

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

Ok Doug?

By the way, does anyone know of such a Unix implementation (one in which
the statement above, without the cast, won't work?

-Joe



More information about the Comp.unix.wizards mailing list