*** empty log message ***
[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.2  1998-02-11 11:53:36  adam
8  * Changed code so that it compiles as C++.
9  *
10  * Revision 1.1  1997/09/17 12:10:42  adam
11  * YAZ version 1.4.
12  *
13  */
14
15 #include <string.h>
16 #include <nmem.h>
17
18 char *nmem_strdup (NMEM mem, const char *src)
19 {
20     char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
21     strcpy (dst, src);
22     return dst;
23 }