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().
on success this function return 0. otherwise it will give non-zero value.