__wcscpy_chk

Name

__wcscpy_chk -- copy a wide-character string, with buffer overflow checking

Synopsis

#include <wchar.h>

wchar_t * __wcscpy_chk(wchar_t * dest, const wchar_t * src, size_t n);

Description

The interface __wcscpy_chk() shall function in the same way as the interface wcscpy(), except that __wcscpy_chk() shall check for buffer overflow before computing a result. If an overflow is anticipated, the function shall abort and the program calling it shall exit.

The __wcscpy_chk() function is not in the source standard; it is only in the binary standard.