Added missing legacy bcmp() function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9767 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
424f90aff9
commit
c1a8ebfa2d
|
@ -1,6 +1,7 @@
|
|||
SubDir OBOS_TOP src kernel libroot posix string ;
|
||||
|
||||
KernelMergeObject posix_string.o :
|
||||
bcmp.c
|
||||
bcopy.c
|
||||
bzero.c
|
||||
memchr.c
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the Haiku License.
|
||||
*/
|
||||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#ifdef bcmp
|
||||
# undef bcmp
|
||||
#endif
|
||||
|
||||
int bcmp(void const *a, const void *b, size_t bytes);
|
||||
|
||||
int
|
||||
bcmp(void const *a, const void *b, size_t bytes)
|
||||
{
|
||||
return memcmp(a, b, bytes);
|
||||
}
|
||||
|
Loading…
Reference in New Issue