Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!rutgers!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.c Subject: Re: why do structs have different sizes across machines? Message-ID: <29358:Mar3120:21:2991@kramden.acf.nyu.edu> Date: 31 Mar 91 20:21:29 GMT References: <77336@bu.edu.bu.edu> <1991Mar26.065356.577@thunder.mcrcim.mcgill.edu> <1991Mar30.021653.6492@uvm.edu> Distribution: na Organization: IR Lines: 11 In article <1991Mar30.021653.6492@uvm.edu> wollman@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