The power of C -- which distinguishes it from most other languages -- is the ability to allocate almost everything statically.
In fact, the older I get the more I appreciate pre-Algol60 way to allocating stack frames statically.
The power of C -- which distinguishes it from most other languages -- is the ability to allocate almost everything statically.
In fact, the older I get the more I appreciate pre-Algol60 way to allocating stack frames statically.
But when C is appropriate, and these problems arise, which they will in any C codebase of appreciable complexity, these string creation interfaces are waiting for you, and will help you write correct code. It's usually a worthwhile effort to reconstruct higher level abstractions in C, in a good manner, for the same reasons you use them in higher level languages.
Note that statically allocating everything is hardly always possible. See the distinction between bounded and unbounded in the article, the unbounded case is really common.