and bcmp are not the same thing. 'man bcmp' states that the return is "non-zero" if the two byte strings are not identical. Where as, 'man memcmp' states that the return is the "difference between the first two differing bytes (treated as unsigned char values" if the two byte strings are not identical. So provide a proper memcmp(9), but it is a C implementation not a tuned assembly implementation. Therefore bcmp(9) should be preferred over memcmp(9). |
||
---|---|---|
.. | ||
arm | ||
ia64 | ||
arc4random.c | ||
ashldi3.c | ||
ashrdi3.c | ||
bcd.c | ||
bcmp.c | ||
bsearch.c | ||
cmpdi2.c | ||
crc32.c | ||
divdi3.c | ||
ffs.c | ||
ffsl.c | ||
fls.c | ||
flsl.c | ||
fnmatch.c | ||
gets.c | ||
iconv_converter_if.m | ||
iconv_xlat16.c | ||
iconv_xlat.c | ||
iconv.c | ||
index.c | ||
inet_ntoa.c | ||
lshrdi3.c | ||
mcount.c | ||
memcmp.c | ||
memset.c | ||
moddi3.c | ||
qdivrem.c | ||
qsort_r.c | ||
qsort.c | ||
quad.h | ||
random.c | ||
rindex.c | ||
scanc.c | ||
skpc.c | ||
strcasecmp.c | ||
strcat.c | ||
strcmp.c | ||
strcpy.c | ||
strcspn.c | ||
strdup.c | ||
strlcat.c | ||
strlcpy.c | ||
strlen.c | ||
strncmp.c | ||
strncpy.c | ||
strsep.c | ||
strspn.c | ||
strstr.c | ||
strtol.c | ||
strtoq.c | ||
strtoul.c | ||
strtouq.c | ||
strvalid.c | ||
ucmpdi2.c | ||
udivdi3.c | ||
umoddi3.c |