1 /* Copyright (C) 1999 Lucent Technologies */
2 /* Excerpted from 'The Practice of Programming' */
3 /* by Brian W. Kernighan and Rob Pike */
5 /* eprintf.h: error wrapper functions */
6 extern void eprintf(char *, ...);
7 extern void weprintf(char *, ...);
8 extern char *estrdup(char *);
9 extern void *emalloc(size_t);
10 extern void *erealloc(void *, size_t);
11 extern char *progname(void);
12 extern void setprogname(char *);
14 #define NELEMS(a) (sizeof(a) / sizeof(a[0]))