forked from starnakin/IronGOLEM
remove: useless func strchri
This commit is contained in:
parent
54370e872e
commit
9a23536491
@ -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++;
|
||||
}
|
||||
}
|
@ -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, "");
|
||||
}
|
Loading…
Reference in New Issue
Block a user