Handmade Hero»Forums»Code
Yuval Dolev
7 posts
C-String Naming In Handmade Hero
Edited by Yuval Dolev on Reason: Initial post
Why does Casey name c-strings and functions that deal with c-strings using 'Z' (for example: "S32FromZ", "WrapZ")?
Simon Anciaux
1341 posts
C-String Naming In Handmade Hero
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).
Yuval Dolev
7 posts
C-String Naming In Handmade Hero
Yeah, that makes sense. Thanks!