DragonFly On-Line Manual Pages
KMALLOC(3) DragonFly Library Functions Manual KMALLOC(3)
NAME
kasprintf, kcalloc, kmalloc, krealloc, kreallocarray, kstrdup - memory
functions for kcgi
LIBRARY
library "libkcgi"
SYNOPSIS
#include <stdint.h>
#include <kcgi.h>
int
kasprintf(char **p, const char *fmt, ...);
void *
kcalloc(size_t nm, size_t sz);
void *
kmalloc(size_t sz);
void *
krealloc(void *p, size_t sz);
void *
kreallocarray(void *p, size_t nm, size_t sz);
char *
kstrdup(const char *cp);
DESCRIPTION
The kasprintf, kcalloc, kmalloc, krealloc, kreallocarray, and kstrdup
functions are wrappers around the usual libc versions of these functions,
only these will exit(3) on allocation failure.
SEE ALSO
kcgi(3)
AUTHORS
The kasprintf library was written by Kristaps Dzonsons <kristaps@bsd.lv>.
DragonFly 6.5-DEVELOPMENT July 16, 2015 DragonFly 6.5-DEVELOPMENT