From 48a5274239dff7de2c930561e3d9047e72a7b68c Mon Sep 17 00:00:00 2001 From: garys Date: Mon, 29 Aug 2005 20:41:58 +0000 Subject: Added a sentence to explain what "span" means. PR: docs/84850 Submitted by: garys MFC after: 3 days Approved by: keramida --- lib/libc/string/strcspn.3 | 7 +++++++ lib/libc/string/strspn.3 | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'lib/libc') 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 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 -- cgit v1.1