Man Page: firestring_set_error_handler
Operating Environment: debian
Section: 3
firestring_set_error_handler(3) Library Functions Manual firestring_set_error_handler(3)NAMEfirestring_set_error_handler - set the function to be called on an allocation failureSYNOPSIS#include <firestring.h> -lfirestring void firestring_set_error_handler(void (*e)())DESCRIPTIONfirestring_set_error_handler() takes the name of a function that takes no parameters and returns void. This function will be called when- ever firestring fails to allocate memory. As memory allocation failures are fatal to most programs, firestring does not return errors when functions fail to allocate memory; it sim- ply calls this function, which it expects to call exit() or abort() or in some way terminate execution of the program. It probably is not safe to pass a function that returns, unless you have a framework in place for passing the allocation failure information back to the code calling the firestring function. The default function calls perror() and then exit().RETURN VALUENoneAUTHORIan Gulliver <ian@penguinhosting.net>SEE ALSOlibfirestring(3) 2003-07-21 firestring_set_error_handler(3)
| Related Man Pages |
|---|
| firestring_estr_chug(3) - debian |
| tcl_alloc(3) - opendarwin |
| tcl_attemptalloc(3) - opendarwin |
| gnutls_global_set_mem_functions(3) - suse |
| posix_memalign(3) - netbsd |
| Similar Topics in the Unix Linux Community |
|---|
| awk or sed - Convert 2 lines to 1 line |
| Is UNIX an open source OS ? |
| Detecting unused variables... |
| Find columns in a file based on header and print to new file |