4 ms·
There is nothing particuarly low level about null terminated strings. It is just a convention that a bunch of standard library functions follow. Then there is a
by gizmo686 2y ago
There is nothing particuarly low level about null terminated strings. It is just a convention that a bunch of standard library functions follow. Then there is a dozen variants of each of those standard library functions, most of which end up making you pass in some form of a length parameter anyway, because the convention is so terrible.
At this point, I think we might be in a better world if C simply did not offer any string API in the first place. If
- yuliyp 2y agoDid your comment get cut off because you embedded a null inside it?
- fuzztester 2y agoye
- Koshkin 2y ago> It is just a convention that a bunch of standard library That’s not true, this representation of strings (in the form of a literal) is built into the language itself.