.\" openfwtk project: xmalloc.3 1-Nov-2000 .TH xmalloc 3 .SH NAME xmalloc(),xrealloc(),xstrdup() \- error-safe memory allocation functions .SH SYNOPSIS .nf #include "fwfunc.h" .fi .sp void* \fBxmalloc\fP(size_t size) .sp void* \fBxrealloc\fP(void *ptr,size_t size) .sp char* \fBxstrdup\fP(const char *str) .SH DESCRIPTION These functions perform the same action as malloc(), realloc() and strdup(), but cause program to terminate with fwtksyserr if memory allocation fails. .SH SEE ALSO malloc(3),realloc(3),strdup(3) .SH HISTORY xmalloc and xrealloc functions are taken from libem by Eberhard Mattes. .PP xstrdup first appeared in OpenFWTK project.