C Programming/wchar.h/putwc

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Name[edit | edit source]

Putwc()

Parameters[edit | edit source]

c is used for the character to be written. stream for pointer to FILE structure.

description[edit | edit source]

It is a standard library function. this function write a wide character to a FILE stream. it is included in the standard library Wchar.h. putwc() function writes a wide character to output stream. it advances the file position accordingly. putwc() function is same as fputwc().

Return value[edit | edit source]

on success this function return 0. otherwise it will give non-zero value.