Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
fwide - Define orientation of a file
&pagelevel(4)&pagelevel
Definition
| #include <stdio.h> #include <wchar.h> int fwide(FILE *fp, int mode); fwide defines the orientation of the file pointed to by the file pointer fp, provided the file has no orientation as yet. If the orientation has already been defined, e.g., by an earlier I/O operation, fwide does not alter the orientation of the file.
Depending on the mode argument, fwide tries to set the orientation as follows: |
| mode > 0 mode < 0 mode = 0 | The file is made wide oriented. The file is made byte oriented. The orientation of the file is not altered. |
Return val. | > 0 < 0 0 | if fp is wide oriented after the call to fwide . if fp is byte oriented after the call to fwide . if fp has no orientation. |
Note | This version of the C runtime system only supports one-byte characters as wide character codes. |