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

[Ì¾Á°]
wscat, wsncat, wscmp, wsncmp, wscpy, wsncpy, wslen, wschr, wsrchr, wspbrk, wstostr, strtows, strntows, wsntostr, wsstrtype
	.... ÆüËÜ¸ìÊ¸»úÎóÁàºî´Ø¿ô

[·Á¼°µÚ¤Óµ¡Ç½]
#include <stdio.h>
#include <nje/nje.h>

wchar_t *wscat(s1, s2)
wchar_t *s1, *s2;	

°ú¿ôs1, s2¤Ïwchar_t·¿Ê¸»úÎó¤Çwchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£°Ê²¼¤Î´Ø¿ô¤âÆ±ÍÍ¤Ç¤¹¡£
wchar_t·¿Ê¸»úÎós2¤ÎÊ£¼Ì¤òwchar_t s1¤Î½ª¤ï¤ê¤ËÄÉ²Ã¤·¤Þ¤¹¡£
s1¤òÊÖ¤·¤Þ¤¹¡£

wchar_t *wsncat(s1, s2 ,n)
wchar_t *s1, *s2;
int n;

s2¤«¤én¸Ä¤Îwchar_t·¿Ê¸»úÎó¤òs1¤Î½ª¤ï¤ê¤ËÄÉ²Ã¤·¤Þ¤¹¡£
s1¤òÊÖ¤·¤Þ¤¹¡£

int wscmp(s1, s2)
wchar_t *s1, *s2;

¤½¤Î°ú¿ô¤òÈæ³Ó¤·¤Æs1¤¬s2¤è¤ê¾®¤µ¤¤¤«¡¢Åù¤·¤¤¤«¡¢Âç¤­¤¤¤«¤Ë¤è¤Ã¤Æ0¤è¤ê¤â¾®¤µ¤¤¡¢Åù¤·¤¤¡¢¤Þ¤¿¤ÏÂç¤­¤¤À°¿ô¤òÊÖ¤·¤Þ¤¹¡£

int wsncmp(s1, s2, n)
wchar_t *s1, *s2;
int n;

wscmp¤ÈÆ±¤¸¤Ç¤¹¤¬n¸ÄÌÜ¤Þ¤Ç¤ÎÊ¸»ú¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£

wchar_t *wscpy(s1, s2)
wchar_t *s1, *s2;

s2¤òs1¤ËÊ£¼Ì¤·¤Þ¤¹¡£wchar_t·¿¥Ì¥ëÊ¸»ú¤òÊ£¼Ì¤¹¤ë¤È½ªÎ»¤·¡¢s1¤òÊÖ¤·¤Þ¤¹¡£

wchar_t *wsncpy(s1, s2, n)
wchar_t *s1, *s2;
int n;

s2¤«¤énÊ¸»úÊ¬¤Îwchar_t·¿Ê¸»úÎó¤òs1¤ËÊ£¼Ì¤·¤Þ¤¹¡£
s2¤ÎÄ¹¤µ¤¬n¤è¤ê¤â¾®¤µ¤¤¤Ê¤é¤Ðwchar_t·¿¥Ì¥ëÊ¸»ú¤òÄÉ²Ã¤·¤Þ¤¹¡£
s2¤ÎÄ¹¤µ¤¬n¤«¤½¤ì°Ê¾å¤Ç¤¢¤ì¤Ðs1¤Ïwchar_t·¿¥Ì¥ë¤Ç¤Ï½ªÎ»¤·¤Ê¤¤¤«¤âÃÎ¤ì¤Þ¤»¤ó¡£
s1¤òÊÖ¤·¤Þ¤¹¡£

int wslen(s)
wchar_t *s;

s¤Îwchar_tÊ¸»ú¤ÎÊ¸»ú¿ô¤òÊÖ¤·¤Þ¤¹¡£¤¿¤À¤·¡¢½ªÎ»Ê¸»ú¤Î¥Ì¥ëÊ¸»ú¤Ï´Þ¤ß¤Þ¤»¤ó¡£

wchar_t *wschr(s, c)
wchar_t *s;
int c;

c¤Ï wchar_t¤¢¤ë¤¤¤ÏEOF¤È¤·¤ÆÉ½¤µ¤ì¤ëint·¿¤Ç¤¹¡£
Ê¸»úÎós¤ÎºÇ½é¤Îwchar_t·¿Ê¸»úc¤ò¼¨¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£¤½¤ÎÊ¸»úÎó¤Ëc¤¬¸«¤Ä¤«¤é¤Ê¤¤¤È¤­¤Ï¥Ì¥ë¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£Ê¸»úÎó¤ò½ªÎ»¤µ¤»¤ëwchar_t·¿¥Ì¥ëÊ¸»ú¤Ï¤½¤ÎÊ¸»úÎó¤Î°ìÉô¤È¤ß¤Ê¤µ¤ì¤Þ¤¹¡£

wchar_t *wsrchr(s, c)
wchar_t *s;
int c;

c¤Ï wchar_t¤¢¤ë¤¤¤ÏEOF¤È¤·¤ÆÉ½¤µ¤ì¤ëint·¿¤Ç¤¹¡£
wschr¤ÈÆ±ÍÍ¤Ç¤¹¤¬wchar_t·¿Ê¸»úÎósÆâ¤ÎºÇ¸å¤ÎÊ¸»úc¤ò¼¨¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£

wchar_t *wspbrk(s1, s2)
wchar_t *s1, *s2;

s2¤ÎÇ¤°Õ¤Îwchar_t·¿Ê¸»ú¤¬s1¤ËºÇ½é¤Ë¸½¤ì¤¿¤È¤­¤½¤ÎÊ¸»ú¤ò¼¨¤¹¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£s2¤Îwchar_t·¿Ê¸»ú¤¬s1¤Ë¤Ê¤¤»þ¤Ï¡¢¥Ì¥ë¥Ý¥¤¥ó¥¿¤òÊÖ¤·¤Þ¤¹¡£

unsigned char *wstostr(s1, s2)
unsigned char *s1;
wchar_t *s2;

wchar_t·¿Ê¸»úÎós2Æâ¤Îwchar_t·¿Ê¸»ú¤òEUCÊ¸»ú¤ËÊÑ´¹¤·¤ÆÊ¸»úÎós1¤Ë°Ü¤·¤Þ¤¹¡£wchar_t·¿¥Ì¥ëÊ¸»ú¤¬½èÍý¤µ¤ì¤ë¤È½ªÎ»¤·¡¢s1¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£

wchar_t *strtows(s1, s2)
wchar_t *s1;
unsigned char *s2;

Ê¸»úÎós2Æâ¤ÎEUCÊ¸»ú¤òwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤·¤Æwchar_t·¿Ê¸»úÎós1¤Ë°Ü¤·¤Þ¤¹¡£¥Ì¥ëÊ¸»ú¤¬½èÍý¤µ¤ì¤ë¤È½ªÎ»¤·¡¢s1¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£
¤Þ¤¿¡¢ÊÑ´¹Ãæ¤Ë°Û¾ï¤Ê¥Ð¥¤¥ÈÎó¤¬¸¡½Ð¤µ¤ì¤ë¤È 0 ¤¬ÊÖ¤µ¤ì°Û¾ï½ªÎ»¤·¤Þ¤¹¡£

unsigned char *wsntostr(s1, s2, n)
unsigned char *s1;
wchar_t *s2;
int n;

wchar_t·¿Ê¸»úÎós2Æâ¤Îwchar_t·¿Ê¸»ú¤òEUCÊ¸»ú¤ËÊÑ´¹¤·¤ÆnÊ¸»úÊ¬Ê¸»úÎós1¤Ë°Ü¤·¤Þ¤¹¡£
wchar_t·¿¥Ì¥ëÊ¸»ú¤¬½èÍý¤µ¤ì¤ë¤È½ªÎ»¤·s1¤òÊÖ¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¾ì¹ç¤â wchar_t·¿¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Þ¤¹¡£

wchar_t *strntows(s1, s2, n)
wchar_t *s1;
unsigned char *s2;
int n;

Ê¸»úÎós2Æâ¤ÎEUCÊ¸»ú¤òwchar_t·¿Ê¸»ú¤ËÊÑ´¹¤·¤Æn¥Ð¥¤¥ÈÊ¬wchar_t·¿Ê¸»úÎós1¤Ë°Ü¤·¤Þ¤¹¡£
¥Ì¥ëÊ¸»ú¤¬½èÍý¤µ¤ì¤ë¤È½ªÎ»¤·s1¤òÊÖ¤·¤Þ¤¹¡£
¤Þ¤¿¡¢ÊÑ´¹Ãæ¤Ë°Û¾ï¤Ê¥Ð¥¤¥ÈÎó¤¬¸¡½Ð¤µ¤ì¤ë¤È 0 ¤¬ÊÖ¤µ¤ì°Û¾ï½ªÎ»¤·¤Þ¤¹¡£
¤¤¤º¤ì¤Î¾ì¹ç¤â ¥Ì¥ëÊ¸»ú¤Ç½ªÎ»¤·¤Þ¤¹¡£

int wsstrtype(s, n)
unsigned char *s;
int n;

2¥Ð¥¤¥ÈÊ¸»ú¤¬´Þ¤Þ¤ì¤ëÊ¸»úÎó s¤ÎºÇ½é¤«¤én¥Ð¥¤¥ÈÌÜ¤Þ¤Ç¤Î¥Ð¥¤¥ÈÎó¤ÎÀ°¹çÀ­¤ò¥Á¥§¥Ã¥¯¤·°Ê²¼¤ÎÃÍ¤òÊÖ¤·¤Þ¤¹¡£Ã¢¤·¡¢n¥Ð¥¤¥È°ÊÆâ¤Ë¥Ì¥ëÊ¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï½èÍý¤Ï½ªÎ»¤µ¤ìNX_SNORMAL¤¬ÊÖ¤µ¤ì¤Þ¤¹¡£

NX_SILLEGAL
	ºÇ½é¤«¤én¥Ð¥¤¥È°ÊÆâ¤ËÉÔÀµ¤Ê¥Ð¥¤¥ÈÎó¤¬È¯¸«¤µ¤ì¤¿¡£
NX_SNORMAL
	Àµ¾ï¤Ê¥Ð¥¤¥ÈÎó¤Ç¤¢¤Ã¤¿¡£
NX_SPENDING
	n¥Ð¥¤¥ÈÌÜ¤¬2¥Ð¥¤¥ÈÊ¸»ú¤ÎÂè°ì¥Ð¥¤¥ÈÌÜ¤Ç¤¢¤ë¤È»×¤ï¤ì¤ë¡£

¤Þ¤¿¡¢¾åµ­¤ÎÃÍ¤Ïnje.h¤Ë´Þ¤Þ¤ì¤Þ¤¹¡£

[´ØÏ¢¹àÌÜ]
string(3)
3.3J ¥ê¥ê¡¼¥¹¥Î¡¼¥È UNIX ¥³¥Þ¥ó¥É ¥é¥¤¥Ö¥é¥ê