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:
Axel Dörfler 2004-11-03 14:57:15 +00:00
parent 424f90aff9
commit c1a8ebfa2d
2 changed files with 23 additions and 0 deletions

View File

@ -1,6 +1,7 @@
SubDir OBOS_TOP src kernel libroot posix string ;
KernelMergeObject posix_string.o :
bcmp.c
bcopy.c
bzero.c
memchr.c

View File

@ -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);
}