__wcsnrtombs_chk

Name

__wcsnrtombs_chk -- convert a wide-character string to a multibyte string, with buffer overflow checking

Synopsis

#include <wchar.h>

size_t __wcsnrtombs_chk(char * dest, const wchar_t * * src, size_t nwc, size_t len, mbstate_t * ps, size_t destlen);

Description

The interface __wcsnrtombs_chk() shall function in the same way as the interface wcsnrtombs(), except that __wcsnrtombs_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 dest. If len exceeds destlen, the function shall abort and the program calling it shall exit.

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