aboutsummaryrefslogtreecommitdiff
path: root/std/stdlib.c
diff options
context:
space:
mode:
authornic-gaffney <gaffney_nic@protonmail.com>2023-06-26 22:51:03 -0500
committernic-gaffney <gaffney_nic@protonmail.com>2023-06-26 22:51:03 -0500
commite1733fc6b3875df434a4c3060bc70286e1f08014 (patch)
treeb7da493cea4771f35e9ca8c4b9584891d2194959 /std/stdlib.c
parent8c9bd55e161ba5fcaea626a1db2e0b685ac4f096 (diff)
downloadsloth-e1733fc6b3875df434a4c3060bc70286e1f08014.tar.gz
standard lib
Diffstat (limited to 'std/stdlib.c')
-rw-r--r--std/stdlib.c12
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);
}