.ad
.PD
.SH 説明
-The \fBstrnlen\fP() function returns the number of bytes in the string pointed
-to by \fIs\fP, excluding the terminating null byte (\(aq\e0\(aq), but at most
-\fImaxlen\fP. In doing this, \fBstrnlen\fP() looks only at the first \fImaxlen\fP
-bytes at \fIs\fP and never beyond \fIs+maxlen\fP.
+\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 バイト