X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=misc.c;h=308c196c31f6ad3364ece033cc5905b2dd5b58d6;hb=8b4f653bf99e0dc88504e0b78c728c6b9cf9b7ec;hp=f72475da74287ffee67c43666fc49e6a91dc7283;hpb=ee5170ade20748797fdde09e370fbb07e585fc9a;p=pkg%2Fabook.git diff --git a/misc.c b/misc.c index f72475d..308c196 100644 --- a/misc.c +++ b/misc.c @@ -77,6 +77,27 @@ is_number(char *p) return 1; } +char * +strcasestr(char *haystack, char *needle) +{ + int i; + int k; + + assert(haystack != NULL); + assert(needle != NULL); + + for(i=0; i