xref: /csrg-svn/lib/libc/string/strlen.3 (revision 48351)
1*48351Scael.\" Copyright (c) 1990, 1991 The Regents of the University of California.
241975Sbostic.\" All rights reserved.
341975Sbostic.\"
441975Sbostic.\" This code is derived from software contributed to Berkeley by
541975Sbostic.\" Chris Torek.
641975Sbostic.\" %sccs.include.redist.man%
741975Sbostic.\"
8*48351Scael.\"     @(#)strlen.3	5.3 (Berkeley) 04/19/91
941975Sbostic.\"
10*48351Scael.Dd
11*48351Scael.Dt STRLEN 3
12*48351Scael.Os
13*48351Scael.Sh NAME
14*48351Scael.Nm strlen
15*48351Scael.Nd find length of string
16*48351Scael.Sh SYNOPSIS
17*48351Scael.Fd #include <string.h>
18*48351Scael.Ft size_t
19*48351Scael.Fn strlen "const char *s"
20*48351Scael.Sh DESCRIPTION
21*48351ScaelThe
22*48351Scael.Fn strlen
23*48351Scaelfunction
24*48351Scaelcomputes the length of the string
25*48351Scael.Fa s .
26*48351Scael.Sh RETURN VALUES
27*48351ScaelThe
28*48351Scael.Fn strlen
29*48351Scaelfunction
30*48351Scaelreturns
31*48351Scaelthe number of characters that precede the
32*48351Scaelterminating
33*48351Scael.Dv NUL
34*48351Scaelcharacter.
35*48351Scael.Sh SEE ALSO
36*48351Scael.Xr string 3
37*48351Scael.Sh STANDARDS
38*48351ScaelThe
39*48351Scael.Fn strlen
40*48351Scaelfunction
41*48351Scaelconforms to
42*48351Scael.St -ansiC .
43