2 |
This trivial function is in the public domain. |
This trivial function is in the public domain. |
3 |
Ian Lance Taylor, Cygnus Support, December 1995. */ |
Ian Lance Taylor, Cygnus Support, December 1995. */ |
4 |
|
|
5 |
|
/* |
6 |
|
|
7 |
|
@deftypefn Replacement char* xstrdup (const char *@var{s}) |
8 |
|
|
9 |
|
Duplicates a character string without fail, using @code{xmalloc} to |
10 |
|
obtain memory. |
11 |
|
|
12 |
|
@end deftypefn |
13 |
|
|
14 |
|
*/ |
15 |
|
|
16 |
#include <sys/types.h> |
#include <sys/types.h> |
17 |
#ifdef HAVE_CONFIG_H |
#ifdef HAVE_CONFIG_H |
18 |
#include "config.h" |
#include "config.h" |