safe_realloc ((void **) &ref, (refmax += REF_INC) * sizeof (LIST *));
safe_realloc (&ref, (refmax += REF_INC) * sizeof (LIST *));
static void write_references (LIST *r, FILE *f){  LIST **ref = NULL;  int refcnt = 0, refmax = 0;  for ( ; (TrimRef == 0 || refcnt < TrimRef) && r ; r = r->next)  {    if (refcnt == refmax)      safe_realloc ((void **) &ref, (refmax += REF_INC) * sizeof (LIST *));    ref[refcnt++] = r;  }  while (refcnt-- > 0)  {    fputc (' ', f);    fputs (ref[refcnt]->data, f);  }  FREE (&ref);}