std::string and null character

| | Comments (0) | TrackBacks (0)

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.

REF: std::string and null Characters - DevX.com

Categories

Leave a comment