2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: nmemsdup.c,v 1.3 2005-01-15 19:47:14 adam Exp $
10 * \brief Implements NMEM dup utilities
20 char *nmem_strdup (NMEM mem, const char *src)
22 char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
27 char *nmem_strdupn (NMEM mem, const char *src, size_t n)
29 char *dst = (char *)nmem_malloc (mem, n+1);
35 int *nmem_intdup(NMEM mem, int v)
37 int *dst = (int*) nmem_malloc (mem, sizeof(int));