X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=misc.c;h=0f96b7a878316948c11d98a70259865d5e70ac55;hb=ca5c3086c7ff9c99645a66fd0c21167ef60ba0e9;hp=f72475da74287ffee67c43666fc49e6a91dc7283;hpb=3370ba68ac9cbbd583da6997c039b29b0fc43b7a;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index f72475d..0f96b7a 100644 --- a/misc.c +++ b/misc.c @@ -77,6 +77,28 @@ is_number(char *p) return 1; } +#ifndef HAVE_STRCASESTR +char * +strcasestr(const char *haystack, const char *needle) +{ + int i; + int k; + + assert(haystack != NULL); + assert(needle != NULL); + + for(i=0; i