Loading...
string/FreeBSD/strspn.3.patch Libc-583 Libc-763.12
--- Libc/Libc-583/string/FreeBSD/strspn.3.patch
+++ Libc/Libc-763.12/string/FreeBSD/strspn.3.patch
@@ -1,6 +1,6 @@
---- _SB/Libc/string/FreeBSD/strspn.3	2003-05-20 15:23:55.000000000 -0700
-+++ _SB/Libc/string/FreeBSD/strspn.3.edit	2006-06-28 16:55:53.000000000 -0700
-@@ -47,17 +47,20 @@
+--- strspn.3.bsdnew	2009-11-30 13:52:24.000000000 -0800
++++ strspn.3	2009-11-30 14:55:45.000000000 -0800
+@@ -43,23 +43,26 @@
  .Sh SYNOPSIS
  .In string.h
  .Ft size_t
@@ -19,9 +19,18 @@
  as long as the characters from
 -.Fa s
 +.Fa s1
- occur in string
+ occur in the null-terminated string
 -.Fa charset .
 +.Fa s2 .
+ In other words, it computes the string array index in
+-.Fa s
++.Fa s1
+ of the first character of
+-.Fa s
++.Fa s1
+ which is not in
+-.Fa charset ,
++.Fa s2 ,
+ else the index of the first null character.
  .Sh RETURN VALUES
  The
- .Fn strspn