From 9676d1ca61b025af9e52506f8aec1f9c0792f51c Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 12 Jun 2025 17:14:12 +0200 Subject: Parse most primitive types into tree Signed-off-by: Mel --- boot/common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'boot/common.c') 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 -- cgit 1.4.1