2 * UCW Library -- String Allocation
4 * (c) 1997 Martin Mares <mj@ucw.cz>
6 * This software may be freely distributed and used according to the terms
7 * of the GNU Lesser General Public License.
15 xstrdup(const char *s)
17 uns l = strlen(s) + 1;
18 return memcpy(xmalloc(l), s, l);