forked from ROMEO/obsw
starting fsfw
This commit is contained in:
3
common/CMakeLists.txt
Normal file
3
common/CMakeLists.txt
Normal file
@ -0,0 +1,3 @@
|
||||
target_sources(
|
||||
${TARGET_NAME} PRIVATE
|
||||
printChar.c)
|
10
common/printChar.c
Normal file
10
common/printChar.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void printChar(const char* character, bool errStream) {
|
||||
if (errStream) {
|
||||
fprintf(stderr, "%c", *character);
|
||||
} else {
|
||||
printf("%c", *character);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user