MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / PrintCStringTo

Function PrintCStringTo

source/test/gtest/src/gtest-printers.cc:426–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

424// Prints a null-terminated C-style string to the ostream.
425template <typename Char>
426void PrintCStringTo(const Char* s, ostream* os) {
427 if (s == nullptr) {
428 *os << "NULL";
429 } else {
430 *os << ImplicitCast_<const void*>(s) << " pointing to ";
431 PrintCharsAsStringTo(s, std::char_traits<Char>::length(s), os);
432 }
433}
434
435} // anonymous namespace
436

Callers 1

PrintToFunction · 0.70

Calls 1

PrintCharsAsStringToFunction · 0.70

Tested by

no test coverage detected