2 * Copyright (c) 1997-2003, Index Data.
3 * See the file LICENSE for details.
5 * $Id: nmemsdup.c,v 1.1 2003-10-27 12:21:33 adam Exp $
14 char *nmem_strdup (NMEM mem, const char *src)
16 char *dst = (char *)nmem_malloc (mem, strlen(src)+1);
21 char *nmem_strdupn (NMEM mem, const char *src, size_t n)
23 char *dst = (char *)nmem_malloc (mem, n+1);
29 int *nmem_intdup(NMEM mem, int v)
31 int *dst = (int*) nmem_malloc (mem, sizeof(int));