Fixed bug in inetd code. The server listened on tcp:@:9999 even
[yaz-moved-to-github.git] / util / nmemsdup.c
1 /*
2  * Copyright (c) 1997, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: nmemsdup.c,v $
7  * Revision 1.1  1997-09-17 12:10:42  adam
8  * YAZ version 1.4.
9  *
10  */
11
12 #include <string.h>
13 #include <nmem.h>
14
15 char *nmem_strdup (NMEM mem, const char *src)
16 {
17     char *dst = nmem_malloc (mem, strlen(src)+1);
18     strcpy (dst, src);
19     return dst;
20 }