macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / string / strlen.3
index a9bd7f2..3a233c7 100644 (file)
@@ -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.
 .\" All rights reserved.
 .\"
 .\" This code is derived from software contributed to Berkeley by
 .\" Chris Torek.
-.\"
 .\" %sccs.include.redist.man%
 .\"
 .\" %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 <string.h>
-
-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 <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 .