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