GETWS(3S)		UNIX ¥é¥¤¥Ö¥é¥ê       	GETWS(3S)

[Ì¾Á°]
getws, fgetws - ¥¹¥È¥ê¡¼¥à¤«¤é¤Îwchar_t·¿Ê¸»úÎó¤Î¼è¤ê½Ð¤·

[·Á¼°]
#include <stdio.h>
#include <nje/nje.h>

wchar_t *getws(s)
wchar_t *s;

wchar_t *fgetws(s, n, stream)
wchar_t *s;
int n;
FILE *stream;

[µ¡Ç½ÀâÌÀ]
fgetws¤ÏEUCÊ¸»ú¤òÉ¸½à½ÐÎÏ¥¹¥È¥ê¡¼¥àstdin¤«¤éÆÉ¤ß¤È¤Ã¤Æwchar_t·¿Ê¸»úÎó¤ËÊÑ´¹¤·¤Æs¤¬¼¨¤¹wchar_t·¿ÇÛÎó¤Ë¤¤¤ì¤Þ¤¹¡£Éüµ¢²þ¹ÔÊ¸»ú¤òÆÉ¤ß¤È¤ë¤«EOF¤ò¸¡ÃÎ¤¹¤ë¤Þ¤ÇÆÉ¤ß¤È¤ê¤òÂ³¤±¤Þ¤¹¡£Éüµ¢²þ¹ÔÊ¸»ú¤Ï¼Î¤Æ¤é¤ìwchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Þ¤¹¡£

fgetws¤Ï¥¹¥È¥ê¡¼¥à¤«¤éEUCÊ¸»ú¤òÆÉ¤ß¤È¤Ã¤Æwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤·s¤¬¼¨¤¹wchar_t·¿ÇÛÎó¤Ë¤¤¤ì¤Þ¤¹¡£n-1Ê¸»úÊ¬¤Îwchar_t·¿Ê¸»ú¤òs¤ËÆþ¤ì¤ë¤«¡¢Éüµ¢²þ¹ÔÊ¸»ú¤òÆÉ¤ß¤È¤Ã¤Æs¤ËÆþ¤ì¤ë¤«¡¢EOF¤¬¸¡ÃÎ¤µ¤ì¤ë¤Þ¤ÇÆÉ¤ß¤È¤ê¤ò¤Ä¤Å¤±¤Þ¤¹¡£wchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Þ¤¹¡£

[´ØÏ¢¹àÌÜ]
getwc(3s)

[¿ÇÃÇ]
EOF¤«ÆÉ¤ß¤È¤ê¥¨¥é¡¼¤¬¸¡ÃÎ¤µ¤ì¡¢¤·¤«¤âwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤µ¤ì¤Æ¤¤¤ëÊ¸»ú¤¬²¿¤â¤Ê¤¤¾ì¹ç¤Ï¡¢s¤Ëwchar_t·¿Ê¸»ú¤ÏÅ¾Á÷¤µ¤ì¤º¥Ì¥ë¥Ý¥¤¥ó¥¿¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£