4.3BSD says that bcopy and bzero are defined in strings.h, not string.h

This commit is contained in:
Michael Brown
2007-01-19 00:51:13 +00:00
parent a213876382
commit 1a0ca661c2
2 changed files with 11 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
#define _STRINGS_H
#include <limits.h>
#include <string.h>
static inline __attribute__ (( always_inline )) int
__constant_flsl ( unsigned long x ) {
@@ -53,4 +54,14 @@ extern int __flsl ( long x );
extern int strcasecmp ( const char *s1, const char *s2 );
static inline __attribute__ (( always_inline )) void
bcopy ( const void *src, void *dest, size_t n ) {
memmove ( dest, src, n );
}
static inline __attribute__ (( always_inline )) void
bzero ( void *s, size_t n ) {
memset ( s, 0, n );
}
#endif /* _STRINGS_H */