Namespaces
Variants
Views
Actions

fwide

From cppreference.com
< c‎ | io
Revision as of 22:39, 2 November 2012 by P12bot (Talk | contribs)

 
 
File input/output


Functions
File access
fwide
(C95)
Direct input/output
Unformatted input/output
(C95)(C95)
(C95)
(C95)(C95)
(C95)
(C95)
Formatted input
Formatted output
File positioning
Error handling
Operations on files
 
Defined in header <wchar.h>
int fwide( FILE *stream, int mode );

If mode > 0, attempts to make stream wide-oriented. If mode < 0, attempts to make stream byte-oriented. If mode==0, only queries the current orientation of the stream.

Parameters

stream - pointer to the C I/O stream to modify or query
mode - integer value greater than zero to set the stream wide, less than zero to set the stream narrow, or zero to query only

Return value

An integer greater than zero if the stream is wide-oriented after this call, less than zero if the stream is byte-oriented after this call, and zero if the stream has no orientation.

See also

Template:c/io/dcl list fopen