diff options
author | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-04 20:06:37 +0200 |
---|---|---|
committer | Alex AUVOLAT <alexis211@gmail.com> | 2012-05-04 20:06:37 +0200 |
commit | 277e4af4fa9e80816c809542d792ee6bebb7f202 (patch) | |
tree | 9abb7f207d185909427137e4861b81c057de1259 /src/common/include/string.h | |
parent | e9683297bf480f9590b0e5796f4520fb430e2e03 (diff) | |
download | TCE-277e4af4fa9e80816c809542d792ee6bebb7f202.tar.gz TCE-277e4af4fa9e80816c809542d792ee6bebb7f202.zip |
Migration to C++!
Diffstat (limited to 'src/common/include/string.h')
-rw-r--r-- | src/common/include/string.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/include/string.h b/src/common/include/string.h index a41459e..e6aa86e 100644 --- a/src/common/include/string.h +++ b/src/common/include/string.h @@ -4,6 +4,10 @@ // #include <stdlib.h> #include <types.h> +#ifdef __cplusplus +extern "C" { +#endif + int strlen(const char *str); char *strcpy(char *dest, const char *src); // char *strdup(const char *src); // uses malloc, that's bad @@ -11,4 +15,8 @@ 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 |