diff options
Diffstat (limited to 'boot/common.c')
| -rw-r--r-- | boot/common.c | 6 |
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 |
