wcscpy

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

wcscpy - ワイド文字文字列をコピーする  

ライブラリ

標準 C ライブラリ (libc,~-lc)  

書式

#include <wchar.h>

wchar_t *wcscpy(wchar_t *restrict dest, const wchar_t *restrict src);
 

説明

The wcscpy() function is the wide-character equivalent of the strcpy(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 に対して確保しなければならない。  

返り値

wcscpy() は dest を返す。  

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
wcscpy() Thread safetyMT-Safe
 

標準規格

C11, POSIX.1-2008.  

歴史

POSIX.1-2001, C99.  

関連項目

strcpy(3), wcpcpy(3), wcscat(3), wcsdup(3), wmemcpy(3)


 

Index

名前
ライブラリ
書式
説明
返り値
属性
標準規格
歴史
関連項目

This document was created by man2html, using the manual pages.