r/C_Programming • • 18d ago

Tiny strings

https://napcakes.nekoweb.org/posts/tiny-strings/
34 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/8d8n4mbo28026ulk 18d ago

The big strings aren't NUL-terminated, so there's no point in doing that for the small ones. Folly devs went to great (crazy) lengths to avoid '\0' too, unsuccessfully. Their hands were tied by the standard, I don't have such constraints.