__fgetws_unlocked_chk

Name

__fgetws_unlocked_chk -- read a wide-character string from a FILE stream in a non-locking manner, with stack checking

Synopsis

#include <wchar.h>

wchar_t * __fgetws_unlocked_chk(wchar_t * ws, size_t strsize, int n, FILE * stream);

Description

The interface __fgetws_unlocked_chk() shall function in the same way as the interface fgetws_unlocked(), except that __fgetws_unlocked_chk() shall check for stack 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_unlocked_chk() function is not in the source standard; it is only in the binary standard.