summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strcspn.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/strcspn.3')
-rw-r--r--lib/libc/string/strcspn.37
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/string/strcspn.3 b/lib/libc/string/strcspn.3
index 2dfda10..ef905a5 100644
--- a/lib/libc/string/strcspn.3
+++ b/lib/libc/string/strcspn.3
@@ -63,6 +63,13 @@ spans the
.Em complement
of
.Fa charset ) .
+In other words, it computes the string array index in
+.Fa s
+of the first character of
+.Fa s
+which is also in
+.Fa charset ,
+else the index of the first null character.
.Sh RETURN VALUES
The
.Fn strcspn
OpenPOWER on IntegriCloud