diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-25 19:41:03 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-06-25 19:41:03 -0500 |
| commit | 28ab9c8ba094d86dbcb9abb853dddd83dca028cc (patch) | |
| tree | b30f3ff0218555270cde4c99c89fa866a4ad324a /std/stdlib.c | |
| parent | bf647e430e3a3642c8199dc81a411d5e1586cabb (diff) | |
| download | sloth-28ab9c8ba094d86dbcb9abb853dddd83dca028cc.tar.gz | |
Standard library updated and llvm-sys added to cargo.toml
Diffstat (limited to 'std/stdlib.c')
| -rw-r--r-- | std/stdlib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/std/stdlib.c b/std/stdlib.c index b50c0c5..f8df9e8 100644 --- a/std/stdlib.c +++ b/std/stdlib.c @@ -3,3 +3,11 @@ void wait(long long x) { sleep(x); } + +int len(char *str) { + return strlen(str); +} + +char charAt(char *str, int) { + return str[int]; +} |
