22 lines
280 B
C
22 lines
280 B
C
/*
|
|
* 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);
|
|
}
|
|
}
|
|
|