diff options
Diffstat (limited to 'src/lib/libc/string/memcmp.3')
-rw-r--r-- | src/lib/libc/string/memcmp.3 | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/lib/libc/string/memcmp.3 b/src/lib/libc/string/memcmp.3 index 13901c1009..db4fef364b 100644 --- a/src/lib/libc/string/memcmp.3 +++ b/src/lib/libc/string/memcmp.3 | |||
@@ -33,8 +33,7 @@ | |||
33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 33 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
34 | .\" SUCH DAMAGE. | 34 | .\" SUCH DAMAGE. |
35 | .\" | 35 | .\" |
36 | .\" from: @(#)memcmp.3 5.5 (Berkeley) 6/29/91 | 36 | .\" $OpenBSD: memcmp.3,v 1.4 2000/04/21 15:24:19 aaron Exp $ |
37 | .\" $Id: memcmp.3,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $ | ||
38 | .\" | 37 | .\" |
39 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
40 | .Dt MEMCMP 3 | 39 | .Dt MEMCMP 3 |
@@ -49,8 +48,7 @@ | |||
49 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
50 | The | 49 | The |
51 | .Fn memcmp | 50 | .Fn memcmp |
52 | function | 51 | function compares byte string |
53 | compares byte string | ||
54 | .Fa b1 | 52 | .Fa b1 |
55 | against byte string | 53 | against byte string |
56 | .Fa b2 . | 54 | .Fa b2 . |
@@ -60,10 +58,11 @@ bytes long. | |||
60 | .Sh RETURN VALUES | 58 | .Sh RETURN VALUES |
61 | The | 59 | The |
62 | .Fn memcmp | 60 | .Fn memcmp |
63 | function | 61 | function returns zero if the two strings are identical, |
64 | returns zero if the the two strings are identical, | ||
65 | otherwise returns the difference between the first two differing bytes | 62 | otherwise returns the difference between the first two differing bytes |
66 | (treated as unsigned char values, so that | 63 | (treated as |
64 | .Li unsigned char | ||
65 | values, so that | ||
67 | .Sq Li \e200 | 66 | .Sq Li \e200 |
68 | is greater than | 67 | is greater than |
69 | .Sq Li \&\e0 , | 68 | .Sq Li \&\e0 , |
@@ -78,6 +77,5 @@ Zero-length strings are always identical. | |||
78 | .Sh STANDARDS | 77 | .Sh STANDARDS |
79 | The | 78 | The |
80 | .Fn memcmp | 79 | .Fn memcmp |
81 | function | 80 | function conforms to |
82 | conforms to | ||
83 | .St -ansiC . | 81 | .St -ansiC . |