![]() |
![]() |
![]() |
Set the stream orientation
#include <wchar.h> int fwide( FILE * fp, int mode );
libc
The fwide() function sets or determines the orientation of the stream fp.
If mode is set to greater than zero and the stream orientation hasn't been set, it flags the stream as wide-oriented. If mode is less than zero, it behaves similarly but flags the stream as byte-oriented.
If mode is set to zero, fwide() returns the stream type without altering the stream.
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | No |
"Stream I/O functions" and "Wide-character functions" in the summary of functions chapter.
![]() |
![]() |
![]() |