C help wanted

greenber at acf4.UUCP greenber at acf4.UUCP
Wed Nov 14 00:55:00 AEST 1984


<>

Assuming that you need two or more different programs to access this data,
remember to subtract/add the offset of the beginning of these structures
BEFORE writing it out to disk and AFTER reading it in.  This makes the
data "position independent".  Another way of doing it (involves more work
during the run of the program, though) is to only have offsets to the
data in question stored instead of pointers.  That is offsets from some
arbitrary data address that is at the begiining of your structure and
also, again, this requires contiguous structures.


Ross M. Greenberg  @ NYU   ---->  allegra!cmcl2!acf4!greenber  <----



More information about the Comp.unix mailing list