From 444bfa2f41143aff7490e4fa21565947565b7d30 Mon Sep 17 00:00:00 2001 From: nasr Date: Fri, 13 Mar 2026 22:31:21 +0100 Subject: cleanup: generalisation --- source/base/base_string.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 source/base/base_string.h (limited to 'source/base/base_string.h') diff --git a/source/base/base_string.h b/source/base/base_string.h new file mode 100644 index 0000000..d879450 --- /dev/null +++ b/source/base/base_string.h @@ -0,0 +1,17 @@ +#ifndef BASE_STRING_H +#define BASE_STRING_H + +// let's use this for strings +// to better differentiate between stuff +typedef u8 s8; +typedef struct string string ; + +struct string +{ + s8 *data; + umm size; +}; + +// TODO(nasr): helper functions for string + +#endif /* BASE_STRING_H */ -- cgit v1.3