pstrdup(3)

NAME
pstrdup, pstrndup, pmemdup - duplicate a string or area of memory

SYNOPSIS
#include <pstring.h>

char *pstrdup (pool, const char *s);
char *pstrndup (pool, const char *s, int n);
void *pmemdup (pool, const void *data, size_t size);

DESCRIPTION

pstrdup duplicates string s, allocating new memory for the string in pool pool.

pstrndup duplicates just the first n characters of the string.

pmemdup duplicates an arbitrary area of memory of size size bytes starting at address data.

AUTHOR
Richard Jones <rich@annexia.org>

LICENSE
GNU LGPL (see http://www.gnu.org/)

VERSION
c2lib-1.2.14