summaryrefslogtreecommitdiffstats
path: root/mbbsd/osdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/osdep.c')
-rw-r--r--mbbsd/osdep.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mbbsd/osdep.c b/mbbsd/osdep.c
index 4e6d286e..73af3f85 100644
--- a/mbbsd/osdep.c
+++ b/mbbsd/osdep.c
@@ -139,6 +139,21 @@ size_t strlcpy(dst, src, siz)
return(s - src - 1); /* count does not include NUL */
}
+char *
+strcasestr(const char *big, const char *little)
+{
+ char *ans = (char *)big;
+ int len = strlen(little);
+ char *endptr = (char *)big + strlen(big) - len;
+
+ while (ans <= endptr)
+ if (!strncasecmp(ans, little, len))
+ return ans;
+ else
+ ans++;
+ return 0;
+}
+
#endif
#if __FreeBSD__