Handmade Hero » Forums » Code » C-String Naming In Handmade Hero
yuvaldolev
Yuval Dolev
4 posts
#21314 C-String Naming In Handmade Hero
3 weeks, 4 days ago Edited by Yuval Dolev on July 23, 2019, 8:15 p.m. Reason: Initial post

Why does Casey name c-strings and functions that deal with c-strings using 'Z' (for example: "S32FromZ", "WrapZ")?
mrmixer
Simon Anciaux
649 posts
#21315 C-String Naming In Handmade Hero
3 weeks, 4 days ago

You should ask him on the stream, but I suppose it's because they are Zero terminated (there is a byte with value zero at the end of the string).
yuvaldolev
Yuval Dolev
4 posts
#21316 C-String Naming In Handmade Hero
3 weeks, 4 days ago

Yeah, that makes sense. Thanks!