diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-04-26 14:57:08 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:25 +0200 |
commit | 3c8b9481088b546af3f0fd161a432ba0f0cb682e (patch) | |
tree | e6a83124f6becb94abc6dfbd03b8bd6400170f81 /common/string.h | |
parent | d8a73fe012567565113419dc0c4678df5abe5bc5 (diff) |
Move libc functions into a pseudo libc away from libarc
Diffstat (limited to 'common/string.h')
-rw-r--r-- | common/string.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/common/string.h b/common/string.h new file mode 100644 index 0000000..04cf123 --- /dev/null +++ b/common/string.h @@ -0,0 +1,26 @@ +/* + * Copyright 1999 Silicon Graphics, Inc. + * 2001 Guido Guenther <agx@sigxcpu.org> + * 2008 Florian Lohoff <flo@rfc822.org> + */ +#ifndef _STRING_H_ +#define _STRING_H_ + +#include "stddef.h" + +extern size_t strlen(const char *s); +extern int strcmp(const char *s1,const char *s2); +extern char *strcat(char *d, char *s); +extern int strncmp(const char *s1, const char *s2, size_t n); +extern char *strchr(const char *s, int c); +extern char *strcpy(char *s1, const char *s2); +extern char *strncpy(char *s1, const char *s2, size_t n); +extern char *strdup(const char *s1); + +extern void *memcpy(void *s1, const void *s2, size_t n); +extern void *memmove(void *s1, const void *s2, size_t n); +extern void *memset(void *s, int c, size_t n); +int memcmp(const void * cs,const void * ct,size_t count); +extern void __bzero(char *p, int len); + +#endif /* _STRING_H_ */ |