add ANSI contribution notice
[unix-history] / usr / src / lib / libc / string / strlen.3
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" Chris Torek and the American National Standards Committee X3,
.\" on Information Processing Systems.
.\"
.\" %sccs.include.redist.man%
.\"
.\" @(#)strlen.3 5.4 (Berkeley) %G%
.\"
.Dd
.Dt STRLEN 3
.Os
.Sh NAME
.Nm strlen
.Nd find length of string
.Sh SYNOPSIS
.Fd #include <string.h>
.Ft size_t
.Fn strlen "const char *s"
.Sh DESCRIPTION
The
.Fn strlen
function
computes the length of the string
.Fa s .
.Sh RETURN VALUES
The
.Fn strlen
function
returns
the number of characters that precede the
terminating
.Dv NUL
character.
.Sh SEE ALSO
.Xr string 3
.Sh STANDARDS
The
.Fn strlen
function
conforms to
.St -ansiC .