3 ms·
instead of a length field, use a pointer to the last character. the length is the difference of these two pointers. The maximum string length is the size of you
by TheSoftwareGuy 13y ago
instead of a length field, use a pointer to the last character. the length is the difference of these two pointers. The maximum string length is the size of your address space. Problem solved.
- thedufer 13y agoThe problem is hardly solved. Your string length computation is already wrong - the length is the difference between those pointers plus one.