new test folder
This commit is contained in:
10
tests/user/unittest/core/printChar.cpp
Normal file
10
tests/user/unittest/core/printChar.cpp
Normal file
@ -0,0 +1,10 @@
|
||||
#include "printChar.h"
|
||||
#include <cstdio>
|
||||
|
||||
void printChar(const char* character, bool errStream) {
|
||||
if(errStream) {
|
||||
std::putc(*character, stderr);
|
||||
return;
|
||||
}
|
||||
std::putc(*character, stdout);
|
||||
}
|
Reference in New Issue
Block a user