NXIO(1)		    UNIX¥é¥¤¥Ö¥é¥ê	NXIO(1)

¡ÎÌ¾Á°¡Ï
NXPutwc, NXPutws, NXGetwc, NXGetws, NXUngetwc
	wchar_t·¿Ê¸»ú¤ÎÆþ½ÐÎÏ
¡Î·Á¼°¡Ï
#include <streams/streams.h>
#include <stdio.h>
#include <nje/nje.h>

int NXPutwc(NXStream *stream, int c)
int NXPutmbc(NXStream *stream, int c)
int NXPutws(NXStream *stream, wchar_t *s)
int NXGetwc(NXStream *stream)
int NXGetmbc(NXStream *stream)
wchar_t *NXGetws(NXStream *stream, wchar_t *s, int n)
void NXUngetwc(NXStream *stream)

¡Îµ¡Ç½ÀâÌÀ¡Ï
NXPutwc¤Ï¡¢wchar_t·¿¤ÎÊ¸»ú c ¤òÄ¾ÀÜ¥¹¥È¥ê¡¼¥àNXStream¤Ë½ñ¤­¹þ¤ß¤Þ¤¹¡£
NXPutmbc¤Ï¡¢wchar_t·¿¤ÎÊ¸»ú c ¤òNJE¥³¡¼¥É¤ËÊÑ´¹¤·¤Æ¥¹¥È¥ê¡¼¥àNXStream¤Ë½ñ¤­¹þ¤ß¤Þ¤¹¡£
NXPutws¤Ï¡¢s¤Ç»ØÄê¤µ¤ì¤¿wchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤¹¤ëwchar_t·¿Ê¸»úÎó¤òNJE¥³¡¼¥É¤ËÊÑ´¹¤·¤Æ¡¢»ØÄê¤µ¤ì¤¿NXStream¤Ë½ñ¤­¹þ¤ß¤Þ¤¹¡£½ªÎ»¤Îwchar_t·¿¥Ì¥ëÊ¸»ú¤Ï½ñ¤­¹þ¤ß¤Þ¤»¤ó¡£
NXGetwc¤Ï¡¢»ØÄê¥¹¥È¥ê¡¼¥à¤Î¼¡¤Îwchar_t·¿Ê¸»ú¤òÀ°¿ôÃÍ¤È¤·¤ÆÊÖ¤·¤Þ¤¹
NXGetmbc¤Ï¡¢»ØÄê¥¹¥È¥ê¡¼¥à¤Î¼¡¤ÎÊ¸»ú¡ÊNJE¥³¡¼¥É¡Ë¤òwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤·À°¿ôÃÍ¤È¤·¤ÆÊÖ¤·¤Þ¤¹¡£
NXGetws¤Ï¥¹¥È¥ê¡¼¥à¤«¤éÊ¸»ú¤òÆÉ¤ß¤È¤Ã¤Æwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤·¡¢s¤¬¼¨¤¹wchar_t·¿ÇÛÎó¤ËÆþ¤ì¤Þ¤¹¡£n-1Ê¸»ú¤Îwchar_t·¿Ê¸»ú¤òs¤ËÆþ¤ì¤ë¤«Éüµ¢²þ¹Ô¤òÆÉ¤ß¼è¤Ã¤Æs¤ËÆþ¤ì¤ë¤«¤¢¤ë¤¤¤ÏEOF¾õÂÖ¤¬¸¡ÃÎ¤µ¤ì¤ë¤Þ¤ÇÆÉ¤ß¼è¤ê¤òÂ³¤±¤Þ¤¹¡£wchar_t·¿¤ÎÊ¸»úÎó¤Ïwchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Þ¤¹¡£
NXUungetwc¤Ï¡¢NXGetmbc¤ÇºÇ¸å¤ËÆÉ¤ß¹þ¤ó¤ÀNJE¥³¡¼¥ÉÊ¸»ú¤ò¥¹¥È¥ê¡¼¥à¤Ë½ñ¤­Ìá¤·¤Þ¤¹¡£ungetc¥é¥¤¥Ö¥é¥ê´Ø¿ô¤È¤Ï°ú¿ô¤¬°Û¤Ê¤ê¤Þ¤¹¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

¡Î¿ÇÃÇ¡Ï
NXPutwc¤Ï½ñ¤­¹þ¤ó¤ÀÊ¸»ú¤òÊÖ¤·¤Þ¤¹¡£
NXPutws¤ÏÊ¸»úÎó¤Î¤¦¤ÁºÇ¸å¤Ë½ñ¤­¹þ¤ó¤ÀÊ¸»ú¤òÊÖ¤·¤Þ¤¹¡£
NXGetws¤Ï¡¢n-1¸Ä¤Îwchar_t·¿Ê¸»ú¤ò½ñ¤¤¤¿»þËô¤ÏÉüµ¢²þ¹Ô¤Ç½ªÎ»¤·¤¿»þ¤Ïs¤ò¡¢EOF¤¬¸¡½Ð¤µ¤ì¤¿»þ¤Þ¤¿¤Ï1Ê¸»ú¤â½ñ¤«¤º¤Ë½ªÎ»¤·¤¿»þ¤Ï¥Ì¥ë¤òÊÖ¤·¤Þ¤¹¡£

¡Î´ØÏ¢¹àÌÜ¡Ï
putc(3s), getc(3s), ungetc(3s)
3.3J ¥ê¥ê¡¼¥¹¥Î¡¼¥È UNIX ¥³¥Þ¥ó¥É ¥é¥¤¥Ö¥é¥ê