]>
gcc.gnu.org Git - gcc.git/blob - libiberty/xstrdup.c
1 /* xstrdup.c -- Duplicate a string in memory, using xmalloc.
2 This trivial function is in the public domain.
3 Ian Lance Taylor, Cygnus Support, December 1995. */
13 #include "libiberty.h"
19 register size_t len
= strlen (s
) + 1;
20 register char *ret
= xmalloc (len
);
This page took 0.034307 seconds and 5 git commands to generate.