memcmp.3 (9c79794016d679440487dea61b3b986397c9ecbb) memcmp.3 (2eeaf934088a2e12646ed4850c7a08c42e894c19)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56.Fa len
57bytes long.
58.Sh RETURN VALUES
59The
60.Fn memcmp
61function
62returns zero if the two strings are identical,
63otherwise returns the difference between the first two differing bytes
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 47 unchanged lines hidden (view full) ---

56.Fa len
57bytes long.
58.Sh RETURN VALUES
59The
60.Fn memcmp
61function
62returns zero if the two strings are identical,
63otherwise returns the difference between the first two differing bytes
64(treated as unsigned char values, so that
64(treated as
65.Vt "unsigned char"
66values, so that
65.Sq Li \e200
66is greater than
67.Sq Li \&\e0 ,
68for example).
69Zero-length strings are always identical.
70.Sh SEE ALSO
71.Xr bcmp 3 ,
72.Xr strcasecmp 3 ,
73.Xr strcmp 3 ,
74.Xr strcoll 3 ,
75.Xr strxfrm 3 ,
76.Xr wmemcmp 3
77.Sh STANDARDS
78The
79.Fn memcmp
80function
81conforms to
82.St -isoC .
67.Sq Li \e200
68is greater than
69.Sq Li \&\e0 ,
70for example).
71Zero-length strings are always identical.
72.Sh SEE ALSO
73.Xr bcmp 3 ,
74.Xr strcasecmp 3 ,
75.Xr strcmp 3 ,
76.Xr strcoll 3 ,
77.Xr strxfrm 3 ,
78.Xr wmemcmp 3
79.Sh STANDARDS
80The
81.Fn memcmp
82function
83conforms to
84.St -isoC .