Poster of Linux kernelThe best gift for a Linux geek
firestring_strdup

firestring_strdup

Section: C Library Functions (3) Updated: 2002-03-31
Local index Up
 

NAME

firestring_strdup - strdup(3) with internal result checking  

SYNOPSIS

#include <firestring.h>
-lfirestring

char *firestring_strdup(const char * const input)  

DESCRIPTION

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

RETURN VALUE

If firestring_strdup() returns, it always returns a copy of the string input. It never returns NULL.  

AUTHOR

Ian Gulliver <ian@penguinhosting.net>  

SEE ALSO

libfirestring(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:46:13 GMT, April 16, 2011