aboutsummaryrefslogtreecommitdiff
path: root/system/include/libc/strings.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-09-24 18:41:07 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-09-24 18:41:07 -0700
commitf2a8bdc4c3bd88cb6a9ff85c4f2c43e9b9f77b97 (patch)
tree172b11e658bf266a001050bf90a029c36ac97bd2 /system/include/libc/strings.h
parent1c8b4752414132e27abc608dda7db8dc0268f73a (diff)
reorganize system/include
Diffstat (limited to 'system/include/libc/strings.h')
-rw-r--r--system/include/libc/strings.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/system/include/libc/strings.h b/system/include/libc/strings.h
new file mode 100644
index 00000000..131d81d2
--- /dev/null
+++ b/system/include/libc/strings.h
@@ -0,0 +1,35 @@
+/*
+ * strings.h
+ *
+ * Definitions for string operations.
+ */
+
+#ifndef _STRINGS_H_
+#define _STRINGS_H_
+
+#include "_ansi.h"
+#include <sys/reent.h>
+
+#include <sys/types.h> /* for size_t */
+
+_BEGIN_STD_C
+
+#if !defined __STRICT_ANSI__ && _POSIX_VERSION < 200809L
+/*
+ * Marked LEGACY in Open Group Base Specifications Issue 6/IEEE Std 1003.1-2004
+ * Removed from Open Group Base Specifications Issue 7/IEEE Std 1003.1-2008
+ */
+int _EXFUN(bcmp,(const void *, const void *, size_t));
+void _EXFUN(bcopy,(const void *, void *, size_t));
+void _EXFUN(bzero,(void *, size_t));
+char *_EXFUN(index,(const char *, int));
+char *_EXFUN(rindex,(const char *, int));
+#endif /* ! __STRICT_ANSI__ */
+
+int _EXFUN(ffs,(int));
+int _EXFUN(strcasecmp,(const char *, const char *));
+int _EXFUN(strncasecmp,(const char *, const char *, size_t));
+
+_END_STD_C
+
+#endif /* _STRINGS_H_ */