EFUN(3) | Library Functions Manual | EFUN(3) |
void (*)(int, const char *, ...)
esetfunc(void (*)(int, const char *, ...));
int
easprintf(char ** restrict str, const char * restrict fmt, ...);
FILE *
efopen(const char *p, const char *m);
void *
ecalloc(size_t n, size_t c);
void *
emalloc(size_t n);
void *
erealloc(void *p, size_t n);
char *
estrdup(const char *s);
char *
estrndup(const char *s, size_t len);
size_t
estrlcat(char *dst, const char *src, size_t len);
size_t
estrlcpy(char *dst, const char *src, size_t len);
int
evasprintf(char ** restrict str, const char * restrict fmt, ...);
For the string handling functions, it is an error when the destination buffer is not large enough to hold the complete string. For functions that allocate memory or open a file, it is an error when they would return a null pointer. The default error handler is err(3). The function esetfunc() returns the previous error handler function. A NULL error handler will just call exit(3).
May 3, 2010 | NetBSD 6.1 |