<p>Can any <a href="https://mastodon.gamedev.place/tags/clanguage" class="mention hashtag" rel="tag">#<span>clanguage</span></a> people give me some suggestions? In my current project, I have a `StringView` struct, which is essentially a pointer and a length. Every time when I need to print it, I need to do something like<br />```c<br />printf("%*s", (int)sv.size, sv.start);<br />```<br />This is annoying and error-prone. I can also write custom format-print functions, which will also allow me to format-print arbitrary structs. However, then I lose the nice compiler protection against incorrect formats.</p><p><a href="https://mastodon.gamedev.place/tags/c" class="mention hashtag" rel="tag">#<span>c</span></a></p>