This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/mbsebbs-code-361e3323ef16e6d9c51e83748a5843a3b34b7f64/lib/strcasestr.c
vbcoen 6a6a253885 Updated mbmon.c & mbsetup.c
Added doc dir. and manual as .pdf
restored deleted files - yep I screwed the pooch.
2015-11-03 20:41:11 +00:00

27 lines
349 B
C

#include "../config.h"
#include "mbselib.h"
#ifndef HAVE_STRCASESTR
char *strcasestr(char *a, char *b)
{
char *p,*max;
int l;
if (a && b) {
l=strlen(b);
max=a+strlen(a)-l;
for (p=a;p<=max;p++)
if (!strncasecmp(p,b,l)) return(p);
return((char *)0);
}
else {
return ((char *) 0);
}
}
#endif