diff options
Diffstat (limited to 'src/lib/libc/string/memcmp.3')
-rw-r--r-- | src/lib/libc/string/memcmp.3 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lib/libc/string/memcmp.3 b/src/lib/libc/string/memcmp.3 index 34c5f60861..db4fef364b 100644 --- a/src/lib/libc/string/memcmp.3 +++ b/src/lib/libc/string/memcmp.3 | |||
@@ -33,7 +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 | .\" $OpenBSD: memcmp.3,v 1.3 1996/12/10 09:06:11 deraadt Exp $ | 36 | .\" $OpenBSD: memcmp.3,v 1.4 2000/04/21 15:24:19 aaron Exp $ |
37 | .\" | 37 | .\" |
38 | .Dd June 29, 1991 | 38 | .Dd June 29, 1991 |
39 | .Dt MEMCMP 3 | 39 | .Dt MEMCMP 3 |
@@ -48,8 +48,7 @@ | |||
48 | .Sh DESCRIPTION | 48 | .Sh DESCRIPTION |
49 | The | 49 | The |
50 | .Fn memcmp | 50 | .Fn memcmp |
51 | function | 51 | function compares byte string |
52 | compares byte string | ||
53 | .Fa b1 | 52 | .Fa b1 |
54 | against byte string | 53 | against byte string |
55 | .Fa b2 . | 54 | .Fa b2 . |
@@ -59,10 +58,11 @@ bytes long. | |||
59 | .Sh RETURN VALUES | 58 | .Sh RETURN VALUES |
60 | The | 59 | The |
61 | .Fn memcmp | 60 | .Fn memcmp |
62 | function | 61 | function returns zero if the two strings are identical, |
63 | returns zero if the two strings are identical, | ||
64 | otherwise returns the difference between the first two differing bytes | 62 | otherwise returns the difference between the first two differing bytes |
65 | (treated as unsigned char values, so that | 63 | (treated as |
64 | .Li unsigned char | ||
65 | values, so that | ||
66 | .Sq Li \e200 | 66 | .Sq Li \e200 |
67 | is greater than | 67 | is greater than |
68 | .Sq Li \&\e0 , | 68 | .Sq Li \&\e0 , |
@@ -77,6 +77,5 @@ Zero-length strings are always identical. | |||
77 | .Sh STANDARDS | 77 | .Sh STANDARDS |
78 | The | 78 | The |
79 | .Fn memcmp | 79 | .Fn memcmp |
80 | function | 80 | function conforms to |
81 | conforms to | ||
82 | .St -ansiC . | 81 | .St -ansiC . |