fwide(3C) fwide(3C)
NAME
fwide - wide-character stream orientation
SYNOPSIS
#include <stdio.h>
#include <wchar.h>
int fwide(FILE *stream, int mode);
DESCRIPTION
The fwide() function determines the orientation of the stream pointed
to by stream. If mode is greater than zero, the function first
attempts to make the stream wide oriented. If mode is less than zero,
the function first attempts to make the stream byte oriented. (If the
orientation of the stream has already been determined, fwide() does
not change it.) Otherwise, mode is zero and the function does not
alter the orientation of the stream.
RETURN VALUES
The fwide() function 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.
SEE ALSO
stdlib(5), wchar(5).
Page 1 Reliant UNIX 5.44 Printed 11/98