getwc(), putwc(), getwchar(), putwchar() wide character functions in C

getwc() function: It is used to return the next wide character from input stream.


int getwc(FILE *stream);

putwc() function: It is used to write a wide character to a file.


wint_t putwc(wchar_t ch, FILE *stream)

getwchar(): It reads a wide character from the keyboard. It is executed when a key is pressed and the pressed key is echoed to screen.

Syntax of getwchar():

wint_t getwchar(void);

putwchar(): At current cursor position, putwchar() prints a wide character to screen.


wint_t putwchar(wint_t c);

Leave a Reply