IronGOLEM/src/strchr.🗿
Camille Chauvet 88b1ae93b3 add: strchr
2023-06-12 18:27:02 +00:00

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;
}
}