|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <wchar.h> | ||
| (1) | ||
wchar_t*wcscat(wchar_t*dest,constwchar_t*src); | (since C95) (until C99) | |
wchar_t*wcscat(wchar_t*restrict dest,constwchar_t*restrict src); | (since C99) | |
errno_t wcscat_s(wchar_t*restrict dest, rsize_t destsz, constwchar_t*restrict src); | (2) | (since C11) |
src to the end of the wide string pointed to bydest. The wide charactersrc[0] replaces the null terminator at the end ofdest. The resulting wide string is null-terminated. The behavior is undefined if the destination array is not large enough for the contents of bothstr anddest and the terminating null wide character. The behavior is undefined if the strings overlap.destsz) with unspecified values and that the following errors are detected at runtime and call the currently installedconstraint handler function:src ordest is a null pointerdestsz is zero or greater thanRSIZE_MAX/sizeof(wchar_t)destsz wide characters ofdestdest would not fit every wide character, including the null terminator, ofsrc)wcscat_s is only guaranteed to be available if__STDC_LIB_EXT1__ is defined by the implementation and if the user defines__STDC_WANT_LIB_EXT1__ to the integer constant1 before including<wchar.h>.Contents |
| dest | - | pointer to the null-terminated wide string to append to |
| src | - | pointer to the null-terminated wide string to copy from |
| destsz | - | maximum number of characters to write, typically the size of the destination buffer |
destdest is a null pointer ordestsz is zero or greater thanRSIZE_MAX/sizeof(wchar_t)).Output:
Земля, прощай. В добрый путь.
(C95)(C11) | appends a certain amount of wide characters from one wide string to another (function)[edit] |
(C11) | concatenates two strings (function)[edit] |
(C95)(C11) | copies one wide string to another (function)[edit] |
C++ documentation forwcscat | |