1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" References consulted:
9 .\" GNU glibc-2 source code and manual
10 .\" Dinkumware C library reference http://www.dinkumware.com/
11 .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
13 .\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
14 .\" Translated Tue Oct 19 02:22:50 JST 1999
15 .\" by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
17 .TH WCSNLEN 3 2007-07-26 "GNU" "Linux Programmer's Manual"
19 wcsnlen \- ¸ÇÄêĹ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤ÎŤµ¤òµá¤á¤ë
22 .B #define _GNU_SOURCE
25 .BI "size_t wcsnlen(const wchar_t *" s ", size_t " maxlen );
31 ´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
32 ¤³¤Î´Ø¿ô¤Ï¡¢\fIs\fP ¤¬»Ø¤¹Ê¸»úÎóÃæ¤Î¥ï¥¤¥Éʸ»ú¤Î¿ô¤òÊÖ¤¹¤¬¡¢¤³¤ì¤ÏºÇÂç
33 \fImaxlen\fP ʸ»ú¤Þ¤Ç¤Ç¤¢¤ë¡£¤Þ¤¿¡¢½ªÃ¼¤Î L\(aq\\0\(aq ʸ»ú¤Ï´Þ¤Þ¤Ê¤¤¡£
36 ¤Ï \fIs\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úÎó¤ÎºÇ½é¤Î
37 \fImaxlen\fP ʸ»ú¤·¤«¸«¤º¡¢·è¤·¤Æ \fIs+maxlen\fP ʸ»ú¤òĶ¤¨¤Æʸ»úÎó¤ò
41 ´Ø¿ô¤Ï¡¢\fIwcslen(s)\fP ¤ÎÃͤ¬ \fImaxlen\fP ¤è¤ê¾®¤µ¤±¤ì
42 ¤Ð \fIwcslen(s)\fP ¤òÊÖ¤¹¡£¤¢¤ë¤¤¤Ï¡¢\fIs\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úÎóÃæ¤Î
43 ºÇ½é¤Î \fImaxlen\fP ʸ»ú¤Ë L\(aq\\0\(aq ʸ»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð
46 ¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£