KMALLOC(3)

NAME
kasprintf, kcalloc, kmalloc, krealloc, kreallocarray, kstrdup - memory functions for kcgi

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>.