about summary refs log tree commit diff
path: root/boot/common.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-12 17:14:12 +0200
committerMel <mel@rnrd.eu>2025-06-12 17:14:12 +0200
commit9676d1ca61b025af9e52506f8aec1f9c0792f51c (patch)
tree1992a522d86019e87363c2b0de2ce37368d27789 /boot/common.c
parent8b655fe0f1d6589c9216a6244c067aec1d866be7 (diff)
downloadcatskill-9676d1ca61b025af9e52506f8aec1f9c0792f51c.tar.zst
catskill-9676d1ca61b025af9e52506f8aec1f9c0792f51c.zip
Parse most primitive types into tree
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/common.c')
-rw-r--r--boot/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/boot/common.c b/boot/common.c
index 65dc780..6851312 100644
--- a/boot/common.c
+++ b/boot/common.c
@@ -121,6 +121,12 @@ string_empty()
     };
 }
 
+bool
+string_is_empty(struct String s)
+{
+    return s.data == nil || s.length == 0;
+}
+
 // allocates a new string in the global string region,
 // taking the data from a null-terminated C string.
 struct String