Stack allocated strings
Ziggit
Stack allocated strings
When coding various “scripty” things in Zig, I often need to format short strings. I hate using gpa for that purpose, as I always mess up freeing stuff, especially when there’s error handling involved. And, most of the time, I actually know that the string is going to be short, even if I can’t immediately say up-front just how short exactly. Like, if I am converting u64 to string, the result would surely be shorter than 1KiB. What is the most convenient API for solving this “short strings on t...
0 comments
No comments yet.