From e1733fc6b3875df434a4c3060bc70286e1f08014 Mon Sep 17 00:00:00 2001 From: nic-gaffney Date: Mon, 26 Jun 2023 22:51:03 -0500 Subject: standard lib --- std/stdlib.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'std/stdlib.c') diff --git a/std/stdlib.c b/std/stdlib.c index 7e77385..11ae42f 100644 --- a/std/stdlib.c +++ b/std/stdlib.c @@ -2,18 +2,18 @@ #include #include -void wait(long long x) { +void wait(int x) { sleep(x); } -long long slen(char *str) { - return (long long) strlen(str); +int slen(char *str) { + return (int) strlen(str); } -char charAt(char *str, long long x) { +char charAt(char *str, int x) { return str[x]; } -long long parse_int(char *str) { - return (long long) atoi(str); +int parse_int(char *str) { + return (int) atoi(str); } -- cgit v1.2.3