Suppose I have a
object and a null-terminated array of characters (or C-style string):
std::string str("This is a ");
const char* cstr = "strings are a really important data type.";
How can I append just the first N characters (in this case, 6, so that
This is a string
) of a C-style string to a
in the cleanest and most efficient way possible?