Zig NEWS

Discussion on: Porting my game to the web

Collapse
 
javier profile image
Javier

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.

Collapse
 
chapliboy profile image
Samarth Hattangady

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.