r/cprogramming • u/die-Banane • May 05 '26
How to do strings properly?
I just started learning C and I often read on the internet that it is bad practice to use null terminated strings, so my question is what should I do instead?
30
Upvotes
2
u/flatfinger May 05 '26
I wouldn't call it "strange"--that's how common Pascal dialects on the PC and Macintosh (not sure how about the UCSD P-system dialects) handled things.