diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-18 11:25:25 +0200 |
commit | f3e03796652b792bb3fd5d3d25b687b9a7f14633 (patch) | |
tree | feef62986de699702136aaf0d56295fde9297115 /src/user/lib/include/string.h | |
parent | c19415d2ffb6f063f91983ff505e2530ab500908 (diff) | |
download | TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.tar.gz TCE-f3e03796652b792bb3fd5d3d25b687b9a7f14633.zip |
A bit of a change in the directory layout.
Diffstat (limited to 'src/user/lib/include/string.h')
-rw-r--r-- | src/user/lib/include/string.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h new file mode 100644 index 0000000..f14af35 --- /dev/null +++ b/src/user/lib/include/string.h @@ -0,0 +1,27 @@ +#ifndef DEF_LIB_STRING_H +#define DEF_LIB_STRING_H + +#include <types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +void *memcpy(void *dest, const void *src, int count); +void *memset(void *dest, int val, int count); +uint16_t *memsetw(uint16_t *dest, uint16_t val, int count); + +int strlen(const char *str); +char *strcpy(char *dest, const char *src); +char *strdup(const char *src); +char *strchr(const char *str, char c); +char *strcat(char *dest, const char *src); +int strcmp(const char *s1, const char *s2); + +#ifdef __cplusplus +} +#endif + + +#endif + |