From debb3b9a9c2cab0791396f008af7021968121001 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Sun, 25 Jun 2023 20:18:08 -0500 Subject: stdlib --- std/stdlib.c | 2 +- std/stdlib.sloth | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'std') 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 { -- cgit v1.2.3