strsave(l) BEGEMOT Library strsave(l)NAME
strsave, xstrsave - return a fresh copy of a string
SYNOPSIS
# include <begemot.h>
char * strsave(const char *str);
char * xstrsave(const char *str);
DESCRIPTION
These functions copy the argument string str into a new memory area
obtained from malloc(3C). xstrsave(l) calls xalloc(l), so the program
exits with a fatal error message if malloc(3C) fails.
RETURN VALUEstrsave(l) returns a pointer to the new string or NULL if malloc(3C)
has failed. xstrsave(l) never returns NULL.
SEE ALSOmalloc(3C), xalloc(l)BEGEMOT 5 June 1996 strsave(l)