diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-09-30 00:18:27 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-09-30 00:18:27 -0500 |
| commit | c748aedbc265fdc7d62768d368161a1f1d88b9a4 (patch) | |
| tree | 2371ae4c1ce98e72c9e414f0e4176c3d8bf35778 /std/stdlib.c | |
| parent | 84c77656e1d5f0414050d8a2dae6c86b022bf125 (diff) | |
| download | sloth-c748aedbc265fdc7d62768d368161a1f1d88b9a4.tar.gz | |
spacing
Diffstat (limited to 'std/stdlib.c')
| -rw-r--r-- | std/stdlib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/std/stdlib.c b/std/stdlib.c index ed848c3..8636f11 100644 --- a/std/stdlib.c +++ b/std/stdlib.c @@ -41,6 +41,9 @@ int as_int(float x) { return (int) x; } +float as_float(int x) { + return (float) x; +} bool sequals(char* a, char* b) { if (strlen(a) != strlen(b)) { return false; |
