FWIDE(3) BSD Programmer's Manual FWIDE(3)
fwide - get/set orientation of a stream
#include <stdio.h>
#include <wchar.h>
int
fwide(FILE *stream, int mode);
The fwide() function determines the orientation of the stream pointed at
by stream.
If the orientation of stream has already been determined, fwide() leaves
it unchanged. Otherwise, fwide() sets the orientation of stream according
to mode.
If mode is less than zero, stream is set to byte-oriented. If it is
greater than zero, stream is set to wide-oriented. Otherwise, mode is
zero, and stream is unchanged.
fwide() returns a value according to orientation after the call of
fwide(); a value less than zero if byte-oriented, a value greater than
zero if wide-oriented, and zero if the stream has no orientation.
ferror(3), fgetc(3), fgetwc(3), fopen(3), fputc(3), fputwc(3),
freopen(3), stdio(3)
The fwide() function conforms to ISO/IEC 9899:1999 ("ISO C99").
MirOS BSD #10-current October 24, 2001 1
Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.