firestring_realloc(3)

firestring_realloc3

Realloc(3) with internal result checking

Usage

#include <firestring.h>
-lfirestring

void *firestring_realloc(void *old, const size_t new)

Overview

firestring_realloc() acts exactly like realloc(3) except that it detects realloc failures, prints an error and exit(3) with exit status EXIT_FAILURE. In most programs, realloc failures are unrecoverable, and this is the preferred behaviour.

Return value

If firestring_realloc() returns, it always returns a string of new bytes containing the data from old at the beginning. It never returns NULL.

Releases

Unchanged in 6 releases since Debian 3.1 (Sarge).

  1. 3.1–8

Author

Ian Gulliver <[email protected]>

From libfirestring-dev 0.9.12-8 in Debian 8 (Jessie). Parsed by carta from the page's man source.