why do structs have different sizes across machines?

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Mon Apr 1 06:21:29 AEST 1991


In article <1991Mar30.021653.6492 at uvm.edu> wollman at emily.uvm.edu (Garrett Wollman) writes:
> [In this day and
> age, it's a fair assumption that Most Networked Unix Systems Which Are
> Derived From 4BSD Support NFS, and NFS presupposes XDR.]

Yes. It is worth noting, however, that Many Networked Unix Systems Which
Are Derived From 4BSD Still Do Not Support NFS or XDR. In general it's
easier to putchar(n/256); putchar(n & 255); than to worry about an XDR
library, at least if you're trying to write portable code.

---Dan



More information about the Comp.lang.c mailing list