News for hackers. Stuff that matters.
Re:C Strings: A 50-Year Mistake – By Trần Thành Long by matheusmoreira on Wednesday July 15, 2026 @04:07PM (#48926407)
In my projects I tried pretty hard to remake the world and get rid of C strings. Went all in on freestanding C, got rid of the standard library, developed my own abstractions.

But I just didn't quite make it. The operating system interfaces want C strings. Can't even open a file without C strings. To fully exorcise C strings, I would need to reinvent Linux. I haven't got enough lifetimes for the task.

Ended up tacking on a hidden trailing NUL to every single buffer instead.

There are no comments on this comment yet.