fsfw-example-hosted/bsp_hosted/utility/printChar.c

11 lines
202 B
C
Raw Normal View History

2021-06-08 13:36:08 +02:00
#include <stdbool.h>
2022-05-05 20:55:48 +02:00
#include <stdio.h>
2021-06-08 13:36:08 +02:00
void printChar(const char* character, bool errStream) {
2022-05-05 20:55:48 +02:00
if (errStream) {
fprintf(stderr, "%c", *character);
} else {
printf("%c", *character);
}
2021-06-08 13:36:08 +02:00
}