GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FWIDE(3) FreeBSD Library Functions Manual FWIDE(3)

fwide
get/set orientation of a stream

Standard C Library (libc, -lc)

#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.

The fwide() function 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”).
October 24, 2001 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.