i think the std.mem library has several functions to deal with zero-terminated strings.
std.mem
as for contants, you could write two files and conditionally import the right one.
I'll have to look into std.mem then.
Yeah, that is an option, but I wasn't a fan of having to break out things into more files. I actually even mention it in the post.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Take off every Zig!
i think the
std.mem
library has several functions to deal with zero-terminated strings.as for contants, you could write two files and conditionally import the right one.
I'll have to look into
std.mem
then.Yeah, that is an option, but I wasn't a fan of having to break out things into more files. I actually even mention it in the post.