NOTE: The netcdf-hdf
mailing list is no longer active. The list archives are made available for historical reasons.
HDF5ers, When creating compound types, I rely on the HOFFSET macro: if (H5Tinsert(typeid, LIQUOR, HOFFSET(struct s2, i2), H5T_NATIVE_INT) < 0) ERR; I see that HOFFSET, in turn, is just using the C macro offsetof. > From reading around, it seems that offsetof might return different numbers on different platforms, since, as I understand it, the internal padding of structs is platform dependent. Is this true? Can HOFFSET give me one answer on one machine, and another on another machine, or with a different compiler? Any thoughts would be most appreciated. Thanks, Ed -- Ed Hartnett -- ed@xxxxxxxxxxxxxxxx
netcdf-hdf
archives: