From c0f7e6f40f29aa091291d6b5a10e7e75773f8b71 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 25 Feb 2004 19:37:58 +0000 Subject: more stubs --- loader2/pcmciatest.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'loader2/pcmciatest.c') diff --git a/loader2/pcmciatest.c b/loader2/pcmciatest.c index b63f53aea..95ba60dbc 100644 --- a/loader2/pcmciatest.c +++ b/loader2/pcmciatest.c @@ -15,6 +15,20 @@ #define LOADER_BACK 1 #define LOADER_ERROR -1 +char * strcasestr(char * haystack1, char * needle1) { + char * haystack = strdup(haystack1); + char * needle = strdup(needle1); + char * chptr; + + for (chptr = haystack; *chptr; chptr++) *chptr = toupper(*chptr); + for (chptr = needle; *chptr; chptr++) *chptr = toupper(*chptr); + + chptr = strstr(needle, haystack); + if (!chptr) return NULL; + + return (chptr - haystack) + haystack1; +} + void logMessage(const char * s, ...) { va_list args; -- cgit