aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/string.h4
-rw-r--r--kern/strings.c21
2 files changed, 0 insertions, 25 deletions
diff --git a/include/string.h b/include/string.h
index cddcbeb9..91c5fe46 100644
--- a/include/string.h
+++ b/include/string.h
@@ -42,8 +42,6 @@ extern char *strcpy (char *dest, const char *src);
extern char *strncpy (char *dest, const char *src, size_t n);
-extern char *strrchr (const char *s, int c);
-
extern char *strsep (char **strp, const char *delim);
extern int strcmp (const char *s1, const char *s2) __attribute__ ((pure));
@@ -54,6 +52,4 @@ extern size_t strlen (const char *s) __attribute__ ((pure));
extern char *strstr(const char *haystack, const char *needle);
-extern int ffs(int i);
-
#endif /* _MACH_SA_SYS_STRING_H_ */
diff --git a/kern/strings.c b/kern/strings.c
index 71c99050..7e7fda02 100644
--- a/kern/strings.c
+++ b/kern/strings.c
@@ -175,27 +175,6 @@ strlen(
/*
* Abstract:
- * memset writes value "c" in the "n" bytes starting at address "s".
- * The return value is a pointer to the "s" string.
- */
-
-#if 0
-void *
-memset(
- void *_s, int c, size_t n)
-{
- char *s = _s;
- size_t i;
-
- for (i = 0; i < n ; i++)
- s[i] = c;
-
- return _s;
-}
-#endif
-
-/*
- * Abstract:
* strchr returns a pointer to the first occurrence of the character
* "c" in the string "s". If "c" is not found, return NULL.
*/