From 71ced998122c357bc62e54d9bb4e124c88acf94b Mon Sep 17 00:00:00 2001 From: nasr Date: Sun, 8 Mar 2026 21:01:43 +0000 Subject: refactor(main): worked on string handling in C and other stuff --- source/base/base_os.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source/base/base_os.h') diff --git a/source/base/base_os.h b/source/base/base_os.h index 23587c6..abe8628 100644 --- a/source/base/base_os.h +++ b/source/base/base_os.h @@ -1,21 +1,13 @@ #ifndef BASE_OS_H #define BASE_OS_H -internal void -print(const char *str) -{ - i32 len = 0; - while (str[len]) len++; - write(STDOUT_FILENO, str, len); -} - internal string8 load_file(const char *path) { string8 result = {0}; struct stat sbuf = {0}; - i32 file = open(path, O_RDONLY); + s32 file = open(path, O_RDONLY); if(file == -1) return result; if(fstat(file, &sbuf) == -1) -- cgit v1.3