summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/string.h1
-rw-r--r--src/include/strings.h11
2 files changed, 11 insertions, 1 deletions
diff --git a/src/include/string.h b/src/include/string.h
index 0ac54a061..123e70cf6 100644
--- a/src/include/string.h
+++ b/src/include/string.h
@@ -59,7 +59,6 @@ char * strpbrk(const char * cs,const char * ct);
char * strtok(char * s,const char * ct);
char * strsep(char **s, const char *ct);
void * memset(void * s,int c,size_t count);
-char * bcopy(const char * src, char * dest, int count);
void * memmove(void * dest,const void *src,size_t count);
int __attribute__ (( pure )) memcmp(const void * cs,const void * ct,
size_t count);
diff --git a/src/include/strings.h b/src/include/strings.h
index 36a0f3333..a087b1d50 100644
--- a/src/include/strings.h
+++ b/src/include/strings.h
@@ -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 */