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:
@@ -1,6 +1,7 @@
|
|||||||
SubDir OBOS_TOP src kernel libroot posix string ;
|
SubDir OBOS_TOP src kernel libroot posix string ;
|
||||||
|
|
||||||
KernelMergeObject posix_string.o :
|
KernelMergeObject posix_string.o :
|
||||||
|
bcmp.c
|
||||||
bcopy.c
|
bcopy.c
|
||||||
bzero.c
|
bzero.c
|
||||||
memchr.c
|
memchr.c
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Axel Dörfler, [email protected]. 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);
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user