aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authornic-gaffney <gaffney_nic@protonmail.com>2023-06-25 20:18:08 -0500
committernic-gaffney <gaffney_nic@protonmail.com>2023-06-25 20:18:08 -0500
commitdebb3b9a9c2cab0791396f008af7021968121001 (patch)
treee864c0f65eaf927a9ba74046beb5dc423144fcf6 /std
parent0de05c7033940966eac811557c3eb85f1ff4e21b (diff)
downloadsloth-debb3b9a9c2cab0791396f008af7021968121001.tar.gz
stdlib
Diffstat (limited to 'std')
-rw-r--r--std/stdlib.c2
-rw-r--r--std/stdlib.sloth2
2 files changed, 2 insertions, 2 deletions
diff --git a/std/stdlib.c b/std/stdlib.c
index f8df9e8..d27b36f 100644
--- a/std/stdlib.c
+++ b/std/stdlib.c
@@ -4,7 +4,7 @@ void wait(long long x) {
sleep(x);
}
-int len(char *str) {
+int slen(char *str) {
return strlen(str);
}
diff --git a/std/stdlib.sloth b/std/stdlib.sloth
index 36f3879..b1849e3 100644
--- a/std/stdlib.sloth
+++ b/std/stdlib.sloth
@@ -1,6 +1,6 @@
foreign fn wait(x: Int) Void;
foreign fn print(str: String) Void;
-foreign fn len(str: String) Int;
+foreign fn slen(str: String) Int;
foreign fn charAt(str: String) Char;
fn termpos(x: int, y: int) Void {