summaryrefslogtreecommitdiffstats
path: root/sys/libkern/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/libkern/index.c')
-rw-r--r--sys/libkern/index.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/libkern/index.c b/sys/libkern/index.c
index d9f4709..a12d706 100644
--- a/sys/libkern/index.c
+++ b/sys/libkern/index.c
@@ -33,6 +33,10 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/libkern.h>
+/*
+ * index() is also present as the strchr() in the kernel; it does exactly the
+ * same thing as it's userland equivalent.
+ */
char *
index(p, ch)
const char *p;
OpenPOWER on IntegriCloud