Register
Handmade Hero»Forums»Code»C-String Naming In Handmade Hero
Yuval Dolev
4 posts
C-String Naming In Handmade Hero
3 months, 3 weeks 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")?
Simon Anciaux
680 posts
C-String Naming In Handmade Hero
3 months, 3 weeks 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).
Yuval Dolev
4 posts
C-String Naming In Handmade Hero
3 months, 3 weeks ago
Yeah, that makes sense. Thanks!