summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-03-15 19:32:28 +0000
committerEric Andersen <andersen@codepoet.org>2001-03-15 19:32:28 +0000
commit348915803b139803528ec78ae80a629a83b51c34 (patch)
tree94e50f3ef6fbce5c2887c798ae179cc3768d723f /include
parenta8e2b7557d99719bf89baee473c4db736745d158 (diff)
Fix the header file for index, rindex and similar
Diffstat (limited to 'include')
-rw-r--r--include/string.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/string.h b/include/string.h
index 6dff15b2d..d449f0bda 100644
--- a/include/string.h
+++ b/include/string.h
@@ -59,12 +59,13 @@ extern __ptr_t memmove __P ((__ptr_t __dest, __const __ptr_t __src,
/* Minimal (very!) locale support */
-#define strcoll strcmp
-#define strxfrm strncpy
+extern int strcoll __P ((__const char *__s1, __const char *__s2));
+extern size_t strxfrm __P ((char *__restrict __dest,
+ __const char *__restrict __src, size_t __n));
/* BSDisms */
-#define index strchr
-#define rindex strrchr
+extern char *index __P ((__const char *__s, int __c));
+extern char *rindex __P ((__const char *__s, int __c));
/* Return the position of the first bit set in I, or 0 if none are set.
The least-significant bit is position 1, the most-significant 32. */