aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
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 {