And here is WriteField2 (if you're interested)

Posted by Maj.Bitch (209.142.4.*) on February 12, 1999 at 15:43:10:

In Reply to: Rewrote WriteField1 and ReadField to functional equivalency.. posted by Maj.Bitch on February 12, 1999 at 15:28:59:


//============================================================
void WriteField2(FILE *f, field_t *field, byte *base) {
void *p;

  if (field->flags & FFL_SPAWNTEMP)
    return;

  p = (void *)(base+field->ofs);

  if (field->type==F_LSTRING && (*(char **)p))
    fwrite(*(char **)p, (int)(strlen(*(char **)p)+1), 1, f);
}


regards,
philip