why do structs have different sizes across machines?
Steve Summit
scs at adam.mit.edu
Mon Apr 1 07:01:35 AEST 1991
In article <29358:Mar3120:21:2991 at kramden.acf.nyu.edu> brnstnd at kramden.acf.nyu.edu (Dan Bernstein) writes:
> 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.
Or, for a truly outlandish solution, consider printf("%d\n", n); .
Steve Summit
scs at adam.mit.edu
More information about the Comp.lang.c
mailing list