diff options
Diffstat (limited to 'std/stdlib.c')
| -rw-r--r-- | std/stdlib.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/std/stdlib.c b/std/stdlib.c new file mode 100644 index 0000000..7e77385 --- /dev/null +++ b/std/stdlib.c @@ -0,0 +1,19 @@ +#include <unistd.h> +#include <stdlib.h> +#include <string.h> + +void wait(long long x) { + sleep(x); +} + +long long slen(char *str) { + return (long long) strlen(str); +} + +char charAt(char *str, long long x) { + return str[x]; +} + +long long parse_int(char *str) { + return (long long) atoi(str); +} |
