title: C++ - Specify maximum character for std::cout when printing char*
body: <p>Let's say I have a const char* that I want to print with std::cout but I only want the first X characters to be printed. Is there a way to tell that to std::cout? (Without inserting a terminating-null into the string or making a temporary copy.)</p>