aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpsn00b/include/string.h')
-rw-r--r--libpsn00b/include/string.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpsn00b/include/string.h b/libpsn00b/include/string.h
index 95796d5..9cd1d64 100644
--- a/libpsn00b/include/string.h
+++ b/libpsn00b/include/string.h
@@ -9,6 +9,10 @@
#ifndef _STRING_H
#define _STRING_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int strcmp(const char *dst , const char *src);
int strncmp(const char *dst , const char *src , int len);
char *strpbrk(const char *dst , const char *src);
@@ -37,6 +41,9 @@ void *memcpy(void *dst , const void *src , int n);
void *memset(void *dst , char c , int n);
int memcmp(const void *b1 , const void *b2 , int n);
+#ifdef __cplusplus
+}
+#endif
#endif