C Programming/wchar.h/putwc

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




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


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.