putwchar - C wchar.h

C examples for wchar.h:putwchar

type

function

From


<cwchar>
<wchar.h>

Prototype

wint_t putwchar (wchar_t wc);

Description

Write wide character to stdout

Parameters

Parameter Description
wc The wide character to be written.

Return Value

On success, the character written is returned.

On error, it returns WEOF, which indicates failure.

Demo Code

#include <wchar.h>

int main ()//  w  w  w . j a  v a2 s  . co m
{
  wchar_t wc;
  for (wc = 'A' ; wc <= 'Z' ; ++wc) putwchar (wc);

  return 0;
}

Related Tutorials