eive-obsw/unittest/printChar.cpp

12 lines
204 B
C++
Raw Permalink Normal View History

#include "printChar.h"
#include <cstdio>
void printChar(const char* character, bool errStream) {
if (errStream) {
std::putc(*character, stderr);
return;
}
std::putc(*character, stdout);
}