(terminating strings with '\0'? yeah, great choice)
Why? What would have been better?
The only alternative I know about is saving the size of the string, but that comes with its own little set of problems.
Why? What would have been better?
The only alternative I know about is saving the size of the string, but that comes with its own little set of problems.
Of course, something like C++ strings might need more processing to do basic things, but between the OS latency/overhead, I/O times and human perception, you wouldn't notice any difference at all.