OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man3 / strnlen.3
index da242e2..d4e7b6b 100644 (file)
@@ -1,61 +1,61 @@
 .\" 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
 .\"
-.\" Japanese Version Copyright (c) 1999 HANATAKA Shinya
-.\"         all rights reserved.
-.\" Translated Tue Jan 11 00:55:48 JST 2000
-.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\"*******************************************************************
 .\"
-.TH STRNLEN 3  2011-09-28 "GNU" "Linux Programmer's Manual"
-.SH Ì¾Á°
-strnlen \- ¸ÇÄêŤÎʸ»úÎó¤ÎŤµ¤òÄ´¤Ù¤ë
-.SH ½ñ¼°
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH STRNLEN 3 2012\-05\-10 GNU "Linux Programmer's Manual"
+.SH 名前
+strnlen \- 固定長の文字列の長さを調べる
+.SH 書式
 .nf
-.B #include <string.h>
+\fB#include <string.h>\fP
 .sp
-.BI "size_t strnlen(const char *" s ", size_t " maxlen );
+\fBsize_t strnlen(const char *\fP\fIs\fP\fB, size_t \fP\fImaxlen\fP\fB);\fP
 .fi
 .sp
 .in -4n
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-.BR strnlen ():
+\fBstrnlen\fP():
 .PD 0
 .ad l
 .RS 4
-.TP 4
-glibc 2.10 °Ê¹ß:
+.TP  4
+glibc 2.10 以降:
 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
-.TP
-glibc 2.10 ¤è¤êÁ°:
+.TP 
+glibc 2.10 より前:
 _GNU_SOURCE
 .RE
 .ad
 .PD
-.SH ÀâÌÀ
-.BR strnlen ()
-´Ø¿ô¤Ï \fIs\fP ¤¬»Ø¤¹Ê¸»úÎó¤ÎŤµ¤ò¥Ð¥¤¥È¿ô¤ÇÊÖ¤¹¡£
-Ťµ¤Ë¤Ï½ªÃ¼¤Î NULL ¥Ð¥¤¥È (\(aq\\0\(aq) ¤Ï´Þ¤Þ¤Ê¤¤¡£
-¤Þ¤¿Ä¹¤µ¤ÏºÇÂç¤Ç \fImaxlen\fP ¤Þ¤Ç¤Ç¤¢¤ê¡¢
-.BR strnlen ()
-¤Ï \fIs\fP ¤ÎºÇ½é¤Î \fImaxlen\fP ¥Ð¥¤¥È¤Î¤ß¤ò¸¡ºº¤·
-\fIs+maxlen\fP ¤è¤êÀè¤ò¸¡ºº¤¹¤ë¤³¤È¤Ï¤Ê¤¤¡£
-.SH ÊÖ¤êÃÍ
-.BR strnlen ()
-´Ø¿ô¤Ï \fImaxlen\fP °Ê²¼¤Ê¤é¤Ð \fIstrlen(s)\fP ¤ÈƱ¤¸
-ÃͤòÊÖ¤¹¡£\fIs\fP ¤Î»Ø¤¹Ê¸»úÎ󤬺ÇÂç \fImaxlen\fP ¥Ð¥¤¥È¤Þ¤Ç¤Ë
-NULL ¥Ð¥¤¥È (\(aq\\0\(aq) Ê¸»ú¤ò´Þ¤Þ¤Ê¤¤¾ì¹ç¤Ë¤Ï \fImaxlen\fP ¤òÊÖ¤¹¡£
-.SH ½àµò
-POSIX.1-2008.
-.SH ´ØÏ¢¹àÌÜ
-.BR strlen (3)
+.SH 説明
+\fBstrnlen\fP() 関数は \fIs\fP が指す文字列の長さをバイト数で返す。 長さには
+終端の NULL バイト (\(aq\e0\(aq) は含まない。 また長さは最大で
+\fImaxlen\fP までであり、 \fBstrnlen\fP() は \fIs\fP の最初の \fImaxlen\fP バイト
+のみを検査し \fIs+maxlen\fP より先を検査することはない。
+.SH 返り値
+\fBstrnlen\fP() 関数は \fImaxlen\fP 以下ならば \fIstrlen(s)\fP と同じ値を返す。
+\fIs\fP の指す文字列が最大 \fImaxlen\fP バイトまでに NULL バイト
+(\(aq\e0\(aq) 文字を含まない場合には \fImaxlen\fP を返す。
+.SH 準拠
+POSIX.1\-2008.
+.SH 関連項目
+\fBstrlen\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。