Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
fputws - Write a wide character string to a file
&pagelevel(4)&pagelevel
Definition | #include <wchar.h> #include <stdio.h> int fputws(const wchar_t *ws, FILE *fp); fputws writes a character string corresponding to the (null-terminated) wide character string pointed to by ws to the file pointed to by the file pointer fp. No character corresponding to the terminating null wide-character code is written. |
Return val. | Non-negative number |
| upon successful completion. |
-1 | otherwise. |
Notes | fputws does not end the output with a newline character. 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)). This version of the C runtime system only supports one-byte characters as wide character codes. The following applies in the case of text files with SAM access mode and variable record length for which a maximum record length is also specified: When the specification
split=no was entered for fopen , records which are longer than the maximum record length are truncated to the maximum record length when they are written. By default or with the specification split=yes , these records are split into multiple records. If a record has precisely the maximum record length, a record of the length zero is written after it. |
See also | fopen, fopen64, fputs, fputwc |