.\" (C) 2002 Ian Gulliver .TH firestring_malloc 3 2002-03-31 .SH NAME firestring_malloc \- .BR malloc (3) with internal result checking .SH SYNOPSIS .B #include .br .B -lfirestring .LP .BI "void *firestring_malloc(const size_t " "size" ")" .SH DESCRIPTION firestring_malloc() acts exactly like .BR malloc (3) except that it detects malloc failures, prints an error and .BR exit (3) with exit status EXIT_FAILURE. In most programs, malloc failures are unrecoverable, and this is the preferred behaviour. .SH RETURN VALUE If firestring_malloc() returns, it .B always returns a new memory area of .I size bytes. It .B never returns .IR NULL. .SH AUTHOR Ian Gulliver .SH SEE ALSO .BR libfirestring (3)