User Tools

Site Tools


Programming Reference/Librarys

Question & Answer

Q&A is closed



   #include <wchar.h>
   int fputws(const wchar_t *string, FILE *stream);


fputws writes the wide-character string to the stream, at the position of the file pointer and advances the pointer.
If the write was successful, a nonnegative integer value is returned. Otherwise, the function returns WEOF.

fputws C Sourcecode Example

 * clearerr example code
#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
#include <wchar.h>
#include <locale.h> /* nessesary for this example */
int main ( void )
   wchar_t string[] = L"fputws example for ÖÄÜ\n";
   if (fputws(string, stdout) == WEOF) {
        return 1;
    return 0;

output - fputws example code

  fputws example for ÖÄÜ

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/wchar.h/fputws.txt · Last modified: 2013/01/22 22:02 (external edit)

Impressum Datenschutz