| United States-English |
|
|
|
![]() |
HP-UX Reference (Volume 6 of 9): Section 3: Library Functions (A-M) > ffgetws(3C) |
|
NAMEfgetws() — get a wide character string from a stream file SYNOPSIS#include <stdio.h> #include <wchar.h> wchar_t *fgetws(wchar_t *ws, int n, FILE *stream); Remarks:fgetws() is compliant with the XPG4 Worldwide Portability Interface wide-character I/O functions. It parallels the 8-bit character I/O function defined in gets(3S). DESCRIPTION
The definition for this functions and the type wchar_t are provided in the <wchar.h> header. APPLICATION USAGEfgetws() is a thread-safe interface. It is not async-cancel-safe. A cancellation point may occur when a thread is executing fgetws(). After fgetws() is applied to a stream, the stream becomes wide-oriented (see orientation(5)). RETURN VALUEUpon successful completion, fgetws() and fgetws_unlocked() return ws. If the stream is at end-of-file, the end-of-file indicator for the stream is set and a null pointer is returned. If a read error occurs, the error indicator for the stream is set, errno is set to indicate the error, and a null pointer is returned. ferror() and feof() can be used to distinguish between an error condition and an end-of-file condition. ERRORSfgetws() and fgetws_unlocked() fail if data needs to be read into the stream's buffer, and:
Additional errno values can be set by the underlying read() function (see read(2)). WARNINGSfgetws_unlocked() is an obsolescent interface supported only for compatibility with existing DCE applications. New multithreaded applications should use fgetws(). SEE ALSOferror(3S), flockfile(3S), fopen(3S), fread(3S), getwc(3C), putws(3C), scanf(3S), orientation(5). |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||