##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::fwide

From cppreference.com
< cpp‎ | io‎ | c

Defined in header `<cwchar>` |  |
int fwide( std::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.

If the orientation of the stream has already been decided (by executing output or by an earlier call to fwide), this function does nothing.

### [edit] 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

### [edit] 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.

### [edit] See also

fopen | opens a file (function) [edit]
C documentation for fwide

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/io/c/fwide&oldid=73688"