Determines and sets the orientation of a stream.
#include <wchar.h> int fwide (FILE *stream, int mode);
If the mode argument is | Then the fwide function |
---|---|
greater than zero | makes the stream wide-oriented. |
less than zero | makes the stream byte- oriented. |
zero | does not alter the orientation of the stream. |
If the orientation of the stream has already been set, fwide does not alter it. Because no error status is defined for fwide, the calling application should check errno if fwide returns a 0.
> 0 | After the call, the stream is wide-oriented. |
< 0 | After the call, the stream is byte-oriented. |
0 | After the call, the stream has no orientation or a stream argument is invalid; the function sets errno. |