Sets the stream orientation, either byte or wide.
#include <wchar.h> int fwide ( struct _iobuf *fp, int mode);
(IN) Points to the stream.
(IN) Specifies the mode of the stream:
Returns a value greater than zero if, after the call, the stream has wide orientation, a value less than zero if the stream has byte-orientation, or zero if the stream has no orientation. If the orientation has already been set, this function does not change it.
No value is reserved to indicate an error. If you want to check for error conditions, you must set errno to 0 before calling this function. If an error occurs, the function sets errno to the following: