diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-02-25 19:37:58 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-02-25 19:37:58 +0000 |
commit | c0f7e6f40f29aa091291d6b5a10e7e75773f8b71 (patch) | |
tree | 84b18bf5276869e1bd74645ef9856f5fb5bd720f /loader2 | |
parent | 9a7b2769f8cef22683134fb275c1706bfefd57b4 (diff) | |
download | anaconda-c0f7e6f40f29aa091291d6b5a10e7e75773f8b71.tar.gz anaconda-c0f7e6f40f29aa091291d6b5a10e7e75773f8b71.tar.xz anaconda-c0f7e6f40f29aa091291d6b5a10e7e75773f8b71.zip |
more stubs
Diffstat (limited to 'loader2')
-rw-r--r-- | loader2/pcmciatest.c | 14 |
1 files changed, 14 insertions, 0 deletions
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; |