source: trunk/gsdl/packages/yaz/util/nmemsdup.c@ 1343

Last change on this file since 1343 was 1343, checked in by johnmcp, 24 years ago

Added the YAZ toolkit source to the packages directory (for z39.50 stuff)

  • Property svn:keywords set to Author Date Id Revision
File size: 852 bytes
Line 
1/*
2 * Copyright (c) 1997-2000, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
5 *
6 * $Log$
7 * Revision 1.1 2000/08/03 03:12:08 johnmcp
8 * Added the YAZ toolkit source to the packages directory (for z39.50 stuff)
9 *
10 * Revision 1.4 2000/02/29 13:44:55 adam
11 * Check for config.h (currently not generated).
12 *
13 * Revision 1.3 1999/11/30 13:47:12 adam
14 * Improved installation. Moved header files to include/yaz.
15 *
16 * Revision 1.2 1998/02/11 11:53:36 adam
17 * Changed code so that it compiles as C++.
18 *
19 * Revision 1.1 1997/09/17 12:10:42 adam
20 * YAZ version 1.4.
21 *
22 */
23#if HAVE_CONFIG_H
24#include <config.h>
25#endif
26
27#include <string.h>
28#include <yaz/nmem.h>
29
30char *nmem_strdup (NMEM mem, const char *src)
31{
32 char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
33 strcpy (dst, src);
34 return dst;
35}
Note: See TracBrowser for help on using the repository browser.