wcsdup(3) Library Functions Manual wcsdup(3) wcsdup - LIBRARY Standard C library (libc, -lc) #include wchar_t *wcsdup(const wchar_t *s); glibc (. feature_test_macros(7)): wcsdup(): glibc 2.10: _POSIX_C_SOURCE >= 200809L glibc 2.10: _BSD_SOURCE wcsdup() sstrdup(3). -- , s. malloc(3) free(3). On success, wcsdup() returns a pointer to the new wide-character string. On error, it returns NULL, with errno set to indicate the error. ENOMEM . attributes(7). +----------------------------+----------------------------------------------------------+--------------------------+ | | | | +----------------------------+----------------------------------------------------------+--------------------------+ |wcsdup() | | MT-Safe | +----------------------------+----------------------------------------------------------+--------------------------+ POSIX.1-2008. libc5, glibc 2.0. . strdup(3), wcscpy(3) Azamat Hackimov Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . wcsdup(3)