File: strnlen.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (44 lines) | stat: -rw-r--r-- 1,389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" 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.
.\"
.\" 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 1999-07-25 "GNU" "Linux Programmer's Manual"
.SH ̾
strnlen \- ĹʸĹĴ٤
.SH 
.nf
.B #define _GNU_SOURCE
.sp
.B #include <string.h>
.sp
.BI "size_t strnlen(const char *" s ", size_t " maxlen );
.fi
.SH 
.BR strnlen ()
ؿ \fIs\fP ؤʸĹХȿ֤
ĹˤϽü \(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 ХȤޤǤ
\(aq\\0\(aq ʸޤޤʤˤ \fImaxlen\fP ֤
.SH 
δؿ GNU γĥǤ롣
.SH Ϣ
.BR strlen (3),
.BR feature_test_macros (7)