vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / string / bcmp.c
blob5c41eec71000a4a8fc106b2f2135fd6b3817ba87
1 /*
2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
7 #include <sys/types.h>
8 #include <string.h>
11 #ifdef bcmp
12 # undef bcmp
13 #endif
15 int bcmp(void const *a, const void *b, size_t bytes);
17 int
18 bcmp(void const *a, const void *b, size_t bytes)
20 return memcmp(a, b, bytes);