X-Git-Url: https://git.deb.at/?p=pkg%2Fabook.git;a=blobdiff_plain;f=misc.c;h=0f96b7a878316948c11d98a70259865d5e70ac55;hp=d49980cf5f851c21836b3965c28014579ba16b8f;hb=b1c882049db5d6d7d5770134cd93e14934ace6c1;hpb=6f33a81fa948039f42f38cb96f736820be524539 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