#include <stdio.h>
#include <locale.h>
#include <stdlib.h>
 
int main(int argc, char **argv) {
	wint_t  retval;
	FILE    *fp;
	wchar_t *pwcs;
	
	setlocale(LC_ALL, "");

	while((retval = getwchar()) != WEOF){
		/* pwcs points to a wide character buffer of BUFSIZ. */
		*pwcs++ = (wchar_t)retval;
		/* break on buffer full */
	}
	/* Process the wide characters in the buffer */
	
	return (0);
}
