std:: wcscat
From cppreference.net
C++
Text processing library
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Null-terminated wide strings
| Functions | ||||||||||||||||||||||||||
| Character classification | ||||||||||||||||||||||||||
| Character manipulation | ||||||||||||||||||||||||||
| Conversions to numeric formats | ||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||
| String manipulation | ||||||||||||||||||||||||||
| String examination | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
| Array manipulation | ||||||||||||||||||||||||||
|
헤더 파일에 정의됨
<cwchar>
|
||
|
wchar_t
*
wcscat
(
wchar_t
*
dest,
const
wchar_t
*
src
)
;
|
||
src 가 가리키는 와이드 문자열의 복사본을 dest 가 가리키는 와이드 문자열의 끝에 추가합니다. 와이드 문자 src [ 0 ] 는 dest 끝에 있는 널 종결자를 대체합니다. 결과 와이드 문자열은 널 종결자로 끝납니다.
대상 배열이 src 와 dest 그리고 종료 널 와이드 문자를 모두 수용할 만큼 충분히 크지 않다면, 동작은 정의되지 않습니다.
문자열이 겹치는 경우 동작은 정의되지 않습니다.
목차 |
매개변수
| dest | - | 추가할 null 종료 와이드 문자열에 대한 포인터 |
| src | - | 복사할 null 종료 와이드 문자열에 대한 포인터 |
반환값
dest 의 복사본을 반환합니다.
예제
이 코드 실행
#include <clocale> #include <cwchar> #include <iostream> int main(void) { wchar_t str[50] = L"Земля, прощай."; std::wcscat(str, L" "); std::wcscat(str, L"В добрый путь."); std::setlocale(LC_ALL, "en_US.utf8"); std::wcout.imbue(std::locale("en_US.utf8")); std::wcout << str << '\n'; }
가능한 출력:
Земля, прощай. В добрый путь.
참고 항목
|
하나의 와이드 문자열에서 특정 개수의 와이드 문자를 다른 와이드 문자열에 추가함
(function) |
|
|
두 문자열을 연결함
(function) |
|
|
하나의 와이드 문자열을 다른 와이드 문자열로 복사함
(function) |
|
|
C documentation
for
wcscat
|
|