diff options
| author | Gary W. Swearingen <garys@FreeBSD.org> | 2005-09-07 16:53:21 +0000 |
|---|---|---|
| committer | Gary W. Swearingen <garys@FreeBSD.org> | 2005-09-07 16:53:21 +0000 |
| commit | a486aff385fd3f6149562fbb34870d6bad021aa8 (patch) | |
| tree | 6a1e5bbd93a35a7b01a628880ad138ce66beeb2d /lib/libc | |
| parent | 87dd9adb317d64d9b4a7b1049e4fa7e6c5e536dd (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/string/strcspn.3 | 7 | ||||
| -rw-r--r-- | lib/libc/string/strspn.3 | 9 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/string/strcspn.3 b/lib/libc/string/strcspn.3 index 2dfda10c45cc..ef905a5c332b 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 17ab817cd2dd..475fab89f37b 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 |
