summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strspn.3
diff options
context:
space:
mode:
authorgarys <garys@FreeBSD.org>2005-08-29 20:41:58 +0000
committergarys <garys@FreeBSD.org>2005-08-29 20:41:58 +0000
commit48a5274239dff7de2c930561e3d9047e72a7b68c (patch)
tree8a6f30741aa20f85b91841a1c52b8d6682b0be37 /lib/libc/string/strspn.3
parent41519e2afcbe79366bbd6fd516fe763234690527 (diff)
downloadFreeBSD-src-48a5274239dff7de2c930561e3d9047e72a7b68c.zip
FreeBSD-src-48a5274239dff7de2c930561e3d9047e72a7b68c.tar.gz
Added a sentence to explain what "span" means.
PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida
Diffstat (limited to 'lib/libc/string/strspn.3')
-rw-r--r--lib/libc/string/strspn.39
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/string/strspn.3 b/lib/libc/string/strspn.3
index 17ab817..475fab8 100644
--- a/lib/libc/string/strspn.3
+++ b/lib/libc/string/strspn.3
@@ -56,8 +56,15 @@ spans the initial part of the null-terminated string
.Fa s
as long as the characters from
.Fa s
-occur in string
+occur in the null-terminated string
.Fa charset .
+In other words, it computes the string array index in
+.Fa s
+of the first character of
+.Fa s
+which is not in
+.Fa charset ,
+else the index of the first null character.
.Sh RETURN VALUES
The
.Fn strspn
OpenPOWER on IntegriCloud