C Programming/C Reference/wchar.h/putwc

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

Name[edit]

Putwc()

Parameters[edit]

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

description[edit]

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]

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