by staticassertion · 8y ago · 0 comments
You're free to roll your own String type that has the length. No clue why people don't just do that though (I assume many do, but obviously a ton do not).
Most somewhat larger C shops will have their own internal utility library or they'll use one of the more popular batteries included packages which typically takes care of memory allocation, string handling, lists and a bunch of other useful stuff.
For certain definitions of "everyone," maybe... I am no longer primarily a C programmer, and haven't been since around the end of 2013, and I'm still firmly in the "C isn't going any where" camp. I just happen to liken this stance to reality.
I really would like that something like SafeC or CheckedC would win the hearts of C devs
One example is the stretchy buffer library that I saw posted recently here.