WCSDUP(3) NEWLIB WCSDUP(3)NAME
6.42 `wcsdup'--wide character string duplicate
SYNOPSIS
#include <wchar.h>
wchar_t *wcsdup(const wchar_t *STR);
#include <wchar.h>
wchar_t *_wcsdup_r(struct _reent *PTR, const wchar_t *STR);
DESCRIPTION
`wcsdup' allocates a new wide character string using `malloc', and
copies the content of the argument STR into the newly allocated string,
thus making a copy of STR.
RETURNS
`wcsdup' returns a pointer to the copy of STR if enough memory for the
copy was available. Otherwise it returns NULL and errno is set to
ENOMEM.
PORTABILITY
POSIX-1.2008
SEE ALSOwcsdup is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 WCSDUP(3)