__fgetws_chk

Name

__fgetws_chk -- read a wide-character string from a FILE stream, with buffer overflow checking

Synopsis

#include <wchar.h>

wchar_t * __fgetws_chk(wchar_t * ws, size_t size, int strsize, FILE * stream);

Description

The interface __fgetws_chk() shall function in the same way as the interface fgetws(), except that __fgetws_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 strsize specifies the size of the object pointed to by stream.

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