xref: /original-bsd/lib/libc/string/strlen.3 (revision c3e32dec)
1.\" Copyright (c) 1990, 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" %sccs.include.redist.man%
9.\"
10.\"     @(#)strlen.3	8.1 (Berkeley) 06/04/93
11.\"
12.Dd
13.Dt STRLEN 3
14.Os
15.Sh NAME
16.Nm strlen
17.Nd find length of string
18.Sh SYNOPSIS
19.Fd #include <string.h>
20.Ft size_t
21.Fn strlen "const char *s"
22.Sh DESCRIPTION
23The
24.Fn strlen
25function
26computes the length of the string
27.Fa s .
28.Sh RETURN VALUES
29The
30.Fn strlen
31function
32returns
33the number of characters that precede the
34terminating
35.Dv NUL
36character.
37.Sh SEE ALSO
38.Xr string 3
39.Sh STANDARDS
40The
41.Fn strlen
42function
43conforms to
44.St -ansiC .
45