macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / string / strspn.3
index 57c357f..135864c 100644 (file)
@@ -1,39 +1,51 @@
-.\" 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%
 .\"
-.\"    @(#)strspn.3    5.1 (Berkeley) %G%
+.\"     @(#)strspn.3   5.2 (Berkeley) %G%
 .\"
 .\"
-.TH STRSPN 3 ""
-.UC 7
-.SH NAME
-strspn \- span a string
-.SH SYNOPSIS
-.nf
-.ft B
-#include <string.h>
-
-size_t
-strspn(const char *s, const char *charset);
-.ft R
-.fi
-.SH DESCRIPTION
-.B Strcspn
+.Dd 
+.Dt STRSPN 3
+.Os
+.Sh NAME
+.Nm strspn
+.Nd span a string
+.Sh SYNOPSIS
+.Fd #include <string.h>
+.Ft size_t
+.Fn strspn "const char *s" "const char *charset"
+.Sh DESCRIPTION
+The
+.Xr strcspn
+function
 spans the initial part of the null-terminated string
 spans the initial part of the null-terminated string
-.I s
+.Fa s
 as long as the characters from
 as long as the characters from
-.I s
+.Fa s
 occur in string
 occur in string
-.IR charset .
-.B Strspn
+.Fa charset .
+.Sh RETURN VALUES
+The
+.Fn strspn
+function
 returns the number of characters spanned.
 returns the number of characters spanned.
-.SH SEE ALSO
-index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strrchr(3),
-strsep(3), strstr(3), strtok(3)
-.SH STANDARDS
-.B Strspn
-conforms to ANSI X3.159-1989 (``ANSI C'').
+.Sh SEE ALSO
+.Xr index 3 ,
+.Xr memchr 3 ,
+.Xr rindex 3 ,
+.Xr strchr 3 ,
+.Xr strcspn 3 ,
+.Xr strpbrk 3 ,
+.Xr strrchr 3 ,
+.Xr strsep 3 ,
+.Xr strstr 3 ,
+.Xr strtok 3
+.Sh STANDARDS
+The
+.Fn strspn
+function
+conforms to
+.St -ansiC .