I wrote a blog post on efficient & safe string building with C -
https://mathewstorm.ca/blog/C_Programming/Strings/daedalus-strings-01/
- I am helping my friend make a high-performance game engine with C that compiles to WebAssembly with EmScripten!
Learning C and how to make it more performant has been a lot of fun.