Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
fputwc - Write a wide character to a file
&pagelevel(4)&pagelevel
Definition | #include <wchar.h> #include <stdio.h> wint_t fputwc(wchar_t wc, FILE *fp); fputwc writes the wide character specified by wc to the output file pointed to by the file pointer fp at the position indicated by the associated file position indicator for the file (if defined), and advances the file position indicator appropriately. If the file cannot support positioning requests or was opened in append mode, the character is appended to the file. If an error occurs during the write operation, the “insert” mode of the output file is indeterminate.
|
Return val. | The written wide character wc as a wint_t value |
| if successful. |
WEOF | if an error occurs. The error indicator for the file is set. If fp is not a valid file pointer, errno is set to EBADF. |
Notes | This version of the C runtime system only supports one-byte characters as wide character codes. Control characters for white space (\n, \t, etc.) are converted to their appropriate effect when output to text files, depending on the type of text file (see section “White space” (Basic terms)). |
See also | ferror, fopen, fopen64, setbuf |