wcsdup()
QNX SDP8.0C Library ReferenceAPIDeveloper
Duplicate a wide-character string
Synopsis:
#include <wchar.h>
wchar_t * wcsdup( const wchar_t * const ws );
Arguments:
- ws
- The wide-character string that you want to duplicate.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The wcsdup() function is the wide-character equivalent of the strdup() function.
This function allocates and returns a new wide-character string whose initial content is a duplicate of the wide-character string pointed to by ws.
Returns:
A pointer to the new wide-character string on success, or NULL if an error occurs (errno is set).
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Signal handler | No |
| Thread | Yes |
Page updated:
