mirror of
https://github.com/diegocr/libnix.git
synced 2025-12-08 14:58:32 +00:00
24 lines
275 B
C
24 lines
275 B
C
#include <string.h>
|
|
#include <proto/utility.h>
|
|
#include "stabs.h"
|
|
|
|
char *stristr(const char *a,const char *b)
|
|
{
|
|
if(a&&b)
|
|
{
|
|
int l = strlen(b);
|
|
|
|
while( *a )
|
|
{
|
|
if(!Strnicmp(a, b, l))
|
|
return((char *)a);
|
|
a++;
|
|
}
|
|
}
|
|
|
|
return NULL;
|
|
}
|
|
|
|
ALIAS(strcasestr,stristr);
|
|
|