| pstrdup, pstrndup, pmemdup - duplicate a string or area of memory |
#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); |
| 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. |
| Richard Jones <rich@annexia.org> |
| GNU LGPL (see http://www.gnu.org/) |
| c2lib-1.2.13 |