wcpcpy
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
wcpcpy - ワイド文字文字列をコピーし、その末尾を指すポインターを返す
ライブラリ
標準 C ライブラリ (libc,~-lc)
書式
#include <wchar.h>
wchar_t *wcpcpy(wchar_t *restrict dest, const wchar_t *restrict src);
glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):
wcpcpy():
Since glibc 2.10:
_POSIX_C_SOURCE >= 200809L
Before glibc 2.10:
_GNU_SOURCE
説明
The wcpcpy() function is the wide-character equivalent of the
stpcpy(3) function. It copies the wide-character string pointed to by
src, including the terminating null wide character (L'\0'),
to the array pointed to by dest.
これらの文字列は重なっていてはならない。
プログラマは、少なくとも wcslen(src)+1 文字のワイド文字 が入るだけの領域を dest に対して確保しなければならない。
返り値
wcpcpy() は、ワイド文字文字列 dest の末尾、つまり終端のヌルワイド文字 を指すポインターを返す。
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
wcpcpy()
| Thread safety | MT-Safe
|
標準規格
POSIX.1-2008.
関連項目
strcpy(3), wcscpy(3)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 返り値
-
- 属性
-
- 標準規格
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.