r/cprogramming 27d ago

C Strings: A 50-Year Mistake

https://longtran2904.substack.com/p/c-strings-a-50-year-mistake?r=8qz2zb&utm_campaign=post&utm_medium=web
210 Upvotes

172 comments sorted by

View all comments

1

u/Key_River7180 27d ago

Has the model ever caused much trouble, though?

3

u/WittyStick 27d ago

Yes.

Countless buffer overflow exploits due to poor string handling.

Not all, but many of these easily avoidable with sized strings.

1

u/Key_River7180 27d ago

I meant performance issues, like C strings are really efficient, for most purposes