OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man3 / wcsnlen.3
index bbf1f29..83cbb3d 100644 (file)
@@ -1,75 +1,66 @@
 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" the License, or (at your option) any later version.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"   GNU glibc-2 source code and manual
 .\"   Dinkumware C library reference http://www.dinkumware.com/
-.\"   OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
+.\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
 .\"
-.\" About this Japanese page, please contact to JM Project <JM@linux.or.jp>
-.\" Translated Tue Oct 19 02:22:50 JST 1999
-.\"           by FUJIWARA Teruyoshi <fujiwara@linux.or.jp>
+.\"*******************************************************************
 .\"
-.TH WCSNLEN 3  2007-07-26 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O wcsnlen \- determine the length of a fixed-size wide-character string
-wcsnlen \- ¸ÇÄêĹ¤Î¥ï¥¤¥Éʸ»úʸ»úÎó¤ÎŤµ¤òµá¤á¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH WCSNLEN 3 2011\-10\-01 GNU "Linux Programmer's Manual"
+.SH 名前
+wcsnlen \- 固定長のワイド文字文字列の長さを求める
+.SH 書式
 .nf
-.B #define _GNU_SOURCE
-.B #include <wchar.h>
+\fB#include <wchar.h>\fP
 .sp
-.BI "size_t wcsnlen(const wchar_t *" s ", size_t " maxlen );
+\fBsize_t wcsnlen(const wchar_t *\fP\fIs\fP\fB, size_t \fP\fImaxlen\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O The
-.\"O .BR wcsnlen ()
-.\"O function is the wide-character equivalent
-.\"O of the
-.\"O .BR strnlen (3)
-.\"O function.
-.\"O It returns the number of wide-characters in the string pointed to by
-.\"O \fIs\fP, not including the terminating L\(aq\\0\(aq character, but at most
-.\"O \fImaxlen\fP.
-.\"O In doing this,
-.\"O .BR wcsnlen ()
-.\"O looks only at the first \fImaxlen\fP
-.\"O wide-characters at \fIs\fP and never beyond \fIs+maxlen\fP.
-.BR wcsnlen ()
-´Ø¿ô¤Ï¡¢
-.BR strnlen (3)
-´Ø¿ô¤ËÂбþ¤¹¤ë¥ï¥¤¥Éʸ»ú´Ø¿ô¤Ç¤¢¤ë¡£
-¤³¤Î´Ø¿ô¤Ï¡¢\fIs\fP ¤¬»Ø¤¹Ê¸»úÎóÃæ¤Î¥ï¥¤¥Éʸ»ú¤Î¿ô¤òÊÖ¤¹¤¬¡¢¤³¤ì¤ÏºÇÂç
-\fImaxlen\fP Ê¸»ú¤Þ¤Ç¤Ç¤¢¤ë¡£¤Þ¤¿¡¢½ªÃ¼¤Î L\(aq\\0\(aq Ê¸»ú¤Ï´Þ¤Þ¤Ê¤¤¡£
-¤³¤ì¤ò¹Ô¤¦ºÝ¤Ë¤Ï¡¢
-.BR wcsnlen ()
-¤Ï \fIs\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úÎó¤ÎºÇ½é¤Î
-\fImaxlen\fP Ê¸»ú¤·¤«¸«¤º¡¢·è¤·¤Æ \fIs+maxlen\fP Ê¸»ú¤òĶ¤¨¤Æʸ»úÎó¤ò
-»²¾È¤¹¤ë¤³¤È¤Ï¤Ê¤¤¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O The
-.\"O .BR wcsnlen ()
-.\"O function returns \fIwcslen(s)\fP, if that is less than
-.\"O \fImaxlen\fP, or \fImaxlen\fP if there is no L\(aq\\0\(aq character among the
-.\"O first \fImaxlen\fP wide characters pointed to by \fIs\fP.
-.BR wcsnlen ()
-´Ø¿ô¤Ï¡¢\fIwcslen(s)\fP ¤ÎÃͤ¬ \fImaxlen\fP ¤è¤ê¾®¤µ¤±¤ì
-¤Ð \fIwcslen(s)\fP ¤òÊÖ¤¹¡£¤¢¤ë¤¤¤Ï¡¢\fIs\fP ¤¬»Ø¤¹¥ï¥¤¥Éʸ»úÎóÃæ¤Î
-ºÇ½é¤Î \fImaxlen\fP Ê¸»ú¤Ë L\(aq\\0\(aq Ê¸»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð
-\fImaxlen\fP ¤òÊÖ¤¹¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-.\"O This function is a GNU extension.
-¤³¤Î´Ø¿ô¤Ï GNU ³ÈÄ¥¤Ç¤¢¤ë¡£
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR strnlen (3),
-.BR wcslen (3)
+.sp
+.in -4n
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
+.in
+.sp
+\fBwcsncasecmp\fP():
+.PD 0
+.ad l
+.RS 4
+.TP  4
+glibc 2.10 以降:
+_XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
+.TP 
+glibc 2.10 より前:
+_GNU_SOURCE
+.RE
+.ad
+.PD
+.SH 説明
+\fBwcsnlen\fP()  関数は、 \fBstrnlen\fP(3)  関数に対応するワイド文字関数である。 この関数は、\fIs\fP
+が指す文字列中のワイド文字の数を返すが、 返されるのはワイド文字で最大 \fImaxlen\fP 文字までである
+(このパラメータはバイト数ではない点に注意)。 また、終端の NULL ワイド文字 (L\(aq\e0\(aq) は含まない。 これを行う際には、
+\fBwcsnlen\fP()  は \fIs\fP が指すワイド文字列の最初の \fImaxlen\fP 文字しか見ず、決して \fIs+maxlen\fP
+文字を超えて文字列を 参照することはない。
+.SH 返り値
+\fBwcsnlen\fP()  関数は、\fIwcslen(s)\fP の値が \fImaxlen\fP より小さけれ ば \fIwcslen(s)\fP
+を返す。あるいは、\fIs\fP が指すワイド文字列中の 最初の \fImaxlen\fP 文字に NULL ワイド文字が含まれていなければ \fImaxlen\fP
+を返す。
+.SH バージョン
+\fBwcsnlen\fP()  関数は glibc バージョン 2.1 以降で提供されている。
+.SH 準拠
+POSIX.1\-2008.
+.SH 関連項目
+\fBstrnlen\fP(3), \fBwcslen\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。