Updated information about YAZ.
[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.3  1999-11-30 13:47:12  adam
8  * Improved installation. Moved header files to include/yaz.
9  *
10  * Revision 1.2  1998/02/11 11:53:36  adam
11  * Changed code so that it compiles as C++.
12  *
13  * Revision 1.1  1997/09/17 12:10:42  adam
14  * YAZ version 1.4.
15  *
16  */
17
18 #include <string.h>
19 #include <yaz/nmem.h>
20
21 char *nmem_strdup (NMEM mem, const char *src)
22 {
23     char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
24     strcpy (dst, src);
25     return dst;
26 }