Sortix volatile manual
This manual documents Sortix volatile, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
mandoc_malloc, mandoc_realloc, mandoc_reallocarray, mandoc_calloc, mandoc_strdup, mandoc_strndup, mandoc_asprintf — memory allocation function wrappers used in the mandoc libraryLIBRARY
Mandoc Macro Compiler Library (libmandoc, -lmandoc)SYNOPSIS
#include <sys/types.h>#include <mandoc_aux.h>
mandoc_malloc(size_t size);
mandoc_realloc(void *ptr, size_t size);
mandoc_reallocarray(void *ptr, size_t nmemb, size_t size);
mandoc_calloc(size_t nmemb, size_t size);
mandoc_strdup(const char *s);
mandoc_strndup(const char *s, size_t maxlen);
mandoc_asprintf(char **ret, const char *format, ...);