|
NAMEstrsave, xstrsave - return a fresh copy of a stringSYNOPSIS# include <begemot.h> char * strsave(const char *str); char * xstrsave(const char *str); DESCRIPTIONThese 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)
Visit the GSP FreeBSD Man Page Interface. |