forked from starnakin/IronGOLEM
13 lines
141 B
Plaintext
13 lines
141 B
Plaintext
strchr(str, c)
|
|
{
|
|
local i;
|
|
i = 0;
|
|
loop {
|
|
if ([str + i] == c)
|
|
return (str + i);
|
|
if ([str + i] == 0)
|
|
return (0);
|
|
i = i + 1;
|
|
}
|
|
}
|