9 void fatal(const char *err
, ...)
13 fputs("ERROR: ", stderr
);
15 va_start(params
, err
);
16 vfprintf(stderr
, err
, params
);
24 char *read_chars(FILE *db
, int (*eof_chars
)(FILE *db
, char c
))
29 const int def_len
= 12;
30 const int grow_hate
= 2;
36 fatal("Could not allocate memory");
40 for (; i
< len
; i
++) {
45 } else if (eof_chars(db
, c
)) {
51 * we probably don't want these characters
62 info
= realloc(info
, len
);
64 fatal("Could not reallocate memory");
67 /* should never get here */
70 return NULL
; /* gcc */