3 ms·
This is a very thoughtful post. Real question: Is the solution to avoid C strings entirely? Use something like a Pascal string that includes the length?
by throwaway2037 4y ago
This is a very thoughtful post. Real question: Is the solution to avoid C strings entirely? Use something like a Pascal string that includes the length?
- jiggawatts 4y agoYes. For the love of god, a thousand times yes. Every other language, even some of the "C-compatible" ones uses explicit-length strings.