forked from starnakin/IronGOLEM
16 lines
232 B
Plaintext
16 lines
232 B
Plaintext
strstr(str, to_find)
|
|
{
|
|
local to_find_size;
|
|
local tmp;
|
|
|
|
to_find_size = strlen(to_find);
|
|
loop
|
|
{
|
|
tmp = strchr(str, [to_find]);
|
|
if (tmp == 0)
|
|
return (0);
|
|
if (strncmp(tmp, to_find, to_find_size) == 0)
|
|
return (tmp);
|
|
}
|
|
}
|