testArduino/bsp_linux/utility/printChar.c

22 lines
280 B
C
Raw Normal View History

/*
* printChar.c
*
* Created on: Jul 30, 2018
* Author: gaisser
*/
#include <stdio.h>
#include <stdbool.h>
void printChar(const char* character, bool errStream) {
if(errStream) {
fprintf( stderr, "%c", *character);
} else {
printf("%c", *character);
}
}