xref: /csrg-svn/lib/libc/string/strlen.3 (revision 61193)
1*61193Sbostic.\" Copyright (c) 1990, 1991, 1993
2*61193Sbostic.\"	The Regents of the University of California.  All rights reserved.
341975Sbostic.\"
441975Sbostic.\" This code is derived from software contributed to Berkeley by
550325Sbostic.\" Chris Torek and the American National Standards Committee X3,
650325Sbostic.\" on Information Processing Systems.
750325Sbostic.\"
841975Sbostic.\" %sccs.include.redist.man%
941975Sbostic.\"
10*61193Sbostic.\"     @(#)strlen.3	8.1 (Berkeley) 06/04/93
1141975Sbostic.\"
1248351Scael.Dd
1348351Scael.Dt STRLEN 3
1448351Scael.Os
1548351Scael.Sh NAME
1648351Scael.Nm strlen
1748351Scael.Nd find length of string
1848351Scael.Sh SYNOPSIS
1948351Scael.Fd #include <string.h>
2048351Scael.Ft size_t
2148351Scael.Fn strlen "const char *s"
2248351Scael.Sh DESCRIPTION
2348351ScaelThe
2448351Scael.Fn strlen
2548351Scaelfunction
2648351Scaelcomputes the length of the string
2748351Scael.Fa s .
2848351Scael.Sh RETURN VALUES
2948351ScaelThe
3048351Scael.Fn strlen
3148351Scaelfunction
3248351Scaelreturns
3348351Scaelthe number of characters that precede the
3448351Scaelterminating
3548351Scael.Dv NUL
3648351Scaelcharacter.
3748351Scael.Sh SEE ALSO
3848351Scael.Xr string 3
3948351Scael.Sh STANDARDS
4048351ScaelThe
4148351Scael.Fn strlen
4248351Scaelfunction
4348351Scaelconforms to
4448351Scael.St -ansiC .
45