1PMEMCTO_WCSDUP(3)          PMDK Programmer's Manual          PMEMCTO_WCSDUP(3)
2
3
4

NAME

6       pmemcto_wcsdup -- duplicate a wide-char string
7

SYNOPSIS

9              #include <libpmemcto.h>
10
11              wchar_t *pmemcto_wcsdup(PMEMctopool *pcp, const wchar_t *s);
12

DESCRIPTION

14       The pmemcto_wcsdup() function provides the same semantics as wcsdup(3),
15       but operates on the memory pool pcp instead of the  process  heap  sup‐
16       plied  by  the  system.  It returns a pointer to a new wide-char string
17       which is a duplicate of the string s.  Memory for the new string is ob‐
18       tained  with  pmemcto_malloc(3),  on  the given memory pool, and can be
19       freed with pmemcto_free(3) on the same memory pool.
20

RETURN VALUE

22       On success, the pmemcto_wcsdup() function returns a pointer to the  du‐
23       plicated  string.  If pmemcto_wcsdup() is unable to satisfy the alloca‐
24       tion request, a NULL pointer is returned and errno is set  appropriate‐
25       ly.
26

ERRORS

28       ENOMEM Insufficient memory available to allocate duplicated string.
29

SEE ALSO

31       jemalloc(3), malloc(3), strdup(3), wcsdup(3), pmemcto_malloc(3), pmemc‐
32       to_strdup(3), libpmemcto(7) and <http://pmem.io>
33
34
35
36PMDK - libpmemcto API version 1.0 2018-03-13                 PMEMCTO_WCSDUP(3)
Impressum