summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-02-06 21:51:02 -0500
committerRich Felker <dalias@aerifal.cx>2012-02-06 21:51:02 -0500
commit36bf56940af90baa478dd1258884291d5d213d10 (patch)
treef959d61ee79470575a2921e568442ec9c0b11b6e /include/string.h
parentc09b6f8ab6edefba52183f8c5ecf6520a8b7ad8f (diff)
downloadmusl-36bf56940af90baa478dd1258884291d5d213d10.tar.gz
musl-36bf56940af90baa478dd1258884291d5d213d10.tar.bz2
musl-36bf56940af90baa478dd1258884291d5d213d10.tar.xz
musl-36bf56940af90baa478dd1258884291d5d213d10.zip
more locale_t interfaces (string stuff) and header updates
this should be everything except for some functions where the non-_l version isn't even implemented yet (mainly some non-ISO-C wcs* functions).
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index a5b5a510..c2dc7e35 100644
--- a/include/string.h
+++ b/include/string.h
@@ -13,6 +13,11 @@ extern "C" {
#endif
#define __NEED_size_t
+#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
+ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define __NEED_locale_t
+#endif
+
#include <bits/alltypes.h>
void *memcpy (void *, const void *, size_t);
@@ -57,6 +62,9 @@ size_t strnlen (const char *, size_t);
char *strdup (const char *);
char *strndup (const char *, size_t);
char *strsignal(int);
+char *strerror_l (int, locale_t);
+int strcoll_l (const char *, const char *, locale_t);
+size_t strxfrm_l (char *, const char *, size_t, locale_t);
#endif
#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)