__wmemset_chk

Name

__wmemset_chk -- fill an array of wide-characters with a constant wide character, with buffer overflow checking

Synopsis

#include <wchar.h>

wchar_t * __wmemset_chk(wchar_t * s, wchar_t c, size_t n, size_t destlen);

Description

The interface __wmemset_chk() shall function in the same way as the interface wmemset(), except that __wmemset_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 parameter destlen specifies the size of the object pointed to by s. If n exceeds destlen, the function shall abort and the program calling it shall exit.

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