remove: useless func strchri

This commit is contained in:
starnakin 2023-07-26 12:13:10 +02:00
parent 54370e872e
commit 9a23536491
2 changed files with 0 additions and 20 deletions

View File

@ -1,12 +0,0 @@
strchri(str, c)
{
local i = 0;
loop {
if ([str + i] == c)
return (i);
if ([str + i] == 0)
return (0 - 1);
i++;
}
}

View File

@ -1,8 +0,0 @@
main()
{
name = "strchri";
test_num(strchri("bozoman", 'm'), 4, "");
test_num(strchri("bozoman", 'v'), 0 - 1, "");
test_num(strchri("", 'v'), 0 - 1, "");
}