X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fnmemsdup.c;h=77ae6d71f6755a4c6255728f7411c9a745eabd46;hb=59fc25662cfb2144a8f9173616aa70a1da9e4f44;hp=a17f9cff8c6eb66ad1b81deea6ff81bbc1748d87;hpb=6517fa53d35512887780fd07de5667940da18a9e;p=yaz-moved-to-github.git diff --git a/util/nmemsdup.c b/util/nmemsdup.c index a17f9cf..77ae6d7 100644 --- a/util/nmemsdup.c +++ b/util/nmemsdup.c @@ -1,20 +1,32 @@ /* - * Copyright (c) 1997, Index Data. + * Copyright (c) 1997-2000, Index Data. * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * * $Log: nmemsdup.c,v $ - * Revision 1.1 1997-09-17 12:10:42 adam + * Revision 1.4 2000-02-29 13:44:55 adam + * Check for config.h (currently not generated). + * + * Revision 1.3 1999/11/30 13:47:12 adam + * Improved installation. Moved header files to include/yaz. + * + * Revision 1.2 1998/02/11 11:53:36 adam + * Changed code so that it compiles as C++. + * + * Revision 1.1 1997/09/17 12:10:42 adam * YAZ version 1.4. * */ +#if HAVE_CONFIG_H +#include +#endif #include -#include +#include char *nmem_strdup (NMEM mem, const char *src) { - char *dst = nmem_malloc (mem, strlen(src)+1); + char *dst = (char *)nmem_malloc (mem, strlen(src)+1); strcpy (dst, src); return dst; }