bcmp - memory operations (LEGACY)
The bcmp() function shall compare the first n bytes of the area pointed to by s1 with the area pointed to by s2.
The bcmp() function shall return 0 if s1 and s2 are identical; otherwise, it shall return non-zero. Both areas are assumed to be n bytes long. If the value of n is 0, bcmp() shall return 0.
No errors are defined.
None.
The memcmp() function is preferred over this function.
For maximum portability, it is recommended to replace the function call to bcmp() as follows:
#define bcmp(b1,b2,len) memcmp((b1), (b2), (size_t)(len))
None.
This function may be withdrawn in a future version.
memcmp(), the Base Definitions volume of IEEE Std 1003.1-2001, <strings.h>
First released in Issue 4, Version 2.
Moved from X/OPEN UNIX extension to BASE.
This function is marked LEGACY.