X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/a9647b53cc82fed22e6bbee47b15db9b2a7d88f6..ae59e04cb5f746d72d5e3e8c84dad7862c9b50e7:/usr/src/lib/libc/string/strlen.3 diff --git a/usr/src/lib/libc/string/strlen.3 b/usr/src/lib/libc/string/strlen.3 index a9bd7f2159..3a233c739f 100644 --- a/usr/src/lib/libc/string/strlen.3 +++ b/usr/src/lib/libc/string/strlen.3 @@ -1,32 +1,42 @@ -.\" Copyright (c) 1990 The Regents of the University of California. +.\" 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. -.\" .\" %sccs.include.redist.man% .\" -.\" @(#)strlen.3 5.1 (Berkeley) %G% +.\" @(#)strlen.3 5.3 (Berkeley) %G% .\" -.TH STRLEN 3 "" -.UC 4 -.SH NAME -strlen \- find length of string -.SH SYNOPSIS -.nf -.ft B -#include - -size_t -strlen(const char *s); -.ft R -.fi -.SH DESCRIPTION -.B Strlen -returns the number of non-null characters in -.IR s . -.SH SEE ALSO -string(3) -.SH STANDARDS -.B Strlen -conforms to ANSI X3.159-1989 (``ANSI C''). +.Dd +.Dt STRLEN 3 +.Os +.Sh NAME +.Nm strlen +.Nd find length of string +.Sh SYNOPSIS +.Fd #include +.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 .