spl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 0f419c13985656c443c871208afefa355af32e86
parent eb7745b26c8c173293aab76056acdc329a842cc8
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 14 Oct 2023 13:42:33 -0700

library: add os_exit()

Diffstat:
Minc/library.impl.c | 3+++
Minc/library.impl.h | 1+
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/inc/library.impl.c b/inc/library.impl.c @@ -51,3 +51,6 @@ t$i32 fn_os_arg_count(void) { return os_argc; } +void fn_os_exit(int n) { + exit(n); +} diff --git a/inc/library.impl.h b/inc/library.impl.h @@ -10,3 +10,4 @@ t$i32 fn_readc(t$i32 fd); t$u8* fn_os_arg(t$i32 n); t$i32 fn_os_arg_count(void); +void fn_os_exit(t$i32 n);