X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=misc.c;h=0f96b7a878316948c11d98a70259865d5e70ac55;hb=ca5c3086c7ff9c99645a66fd0c21167ef60ba0e9;hp=d49980cf5f851c21836b3965c28014579ba16b8f;hpb=6f33a81fa948039f42f38cb96f736820be524539;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index d49980c..0f96b7a 100644 --- a/misc.c +++ b/misc.c @@ -1,6 +1,6 @@ /* - * $Id: misc.c,v 1.23 2006/09/04 18:29:25 cduval Exp $ + * $Id$ * * by JH * @@ -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