Duplicates a wide-character string.
#include <wchar.h>
wchar_t *wcsdup (
const wchar_t *s);
(IN) Points to the wide-character string to duplicate.
Returns a pointer to s or NULL if insufficient memory is available.
The wcsdup function allocates memory for the string and then copies the specified string to that memory, and returns a pointer to the string. When you have finished with the duplicated string, you should free the memory by calling the free function.