diff options
| author | Cody <cody@codyq.dev> | 2023-06-26 23:42:13 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-06-26 23:42:13 -0500 |
| commit | 27b7187c21f6ff4e469592a8ea5757ca6aee8577 (patch) | |
| tree | 8699d8e175397da0e6b2d73814853b71c03f4a62 /std/stdlib.c | |
| parent | a3c5134ee7581168947df8a050c332d7cb7aa426 (diff) | |
| parent | e1733fc6b3875df434a4c3060bc70286e1f08014 (diff) | |
| download | sloth-27b7187c21f6ff4e469592a8ea5757ca6aee8577.tar.gz | |
Merge branch 'master' of github.com:slothlang/slothlang
Diffstat (limited to 'std/stdlib.c')
| -rw-r--r-- | std/stdlib.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 <stdlib.h> #include <string.h> -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); } |
