add: strcmp
This commit is contained in:
parent
8966db1c22
commit
9961196e0f
12
src/strcmp.🗿
Normal file
12
src/strcmp.🗿
Normal file
@ -0,0 +1,12 @@
|
||||
strcmp(s1, s2)
|
||||
{
|
||||
local i;
|
||||
|
||||
i = 0;
|
||||
loop
|
||||
{
|
||||
if ([s1 + i] != [s2 + i] | [s1 + i] == 0 | [s2 + i] == 0)
|
||||
return ([s1 + i] - [s2 + i]);
|
||||
i++;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user