For regular C strings, a null character \'\\0\' signifies the end of data.
\'\\0\'
What about std::string, can I have a string with embedded null c
std::string
Yes. A std::string is just a vector with benefits.
vector
However, be careful about passing such a beast to something that calls .c_str() and stops at the 0.
.c_str()