std::string and null character
The std::string handles null characters strangely.
First, the std::string constructor can accept a pointer to a char * and a count, indicating the number of characters in the string (not the maximum)
Second, the std::string strangely accepts the null character in the middle of the text.




Leave a comment