133965Sjdp/* bcmp 233965Sjdp This function is in the public domain. */ 333965Sjdp 433965Sjdp/* 533965Sjdp 689857Sobrien@deftypefn Supplemental int bcmp (char *@var{x}, char *@var{y}, int @var{count}) 733965Sjdp 889857SobrienCompares the first @var{count} bytes of two areas of memory. Returns 989857Sobrienzero if they are the same, nonzero otherwise. Returns zero if 1089857Sobrien@var{count} is zero. A nonzero result only indicates a difference, 1189857Sobrienit does not indicate any sorting order (say, by having a positive 1289857Sobrienresult mean @var{x} sorts before @var{y}). 1333965Sjdp 1489857Sobrien@end deftypefn 1533965Sjdp 1633965Sjdp*/ 1733965Sjdp 18218822Sdim#include <stddef.h> 1933965Sjdp 20218822Sdimextern int memcmp(const void *, const void *, size_t); 21218822Sdim 2233965Sjdpint 23218822Sdimbcmp (const void *s1, const void *s2, size_t count) 2433965Sjdp{ 25218822Sdim return memcmp (s1, s2, count); 2633965Sjdp} 2733965Sjdp 28