From 9961196e0f035e5d1506fc5c11fd34c23ac25067 Mon Sep 17 00:00:00 2001 From: starnakin Date: Sun, 18 Jun 2023 15:07:38 +0200 Subject: [PATCH] add: strcmp --- src/strcmp.🗿 | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/strcmp.🗿 diff --git a/src/strcmp.🗿 b/src/strcmp.🗿 new file mode 100644 index 0000000..f5635a1 --- /dev/null +++ b/src/strcmp.🗿 @@ -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++; + } +}