add: strcmp

This commit is contained in:
starnakin 2023-06-18 15:07:38 +02:00
parent 8966db1c22
commit 9961196e0f

12
src/strcmp.🗿 Normal file
View 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++;
}
}