mission and config folders added , make file is added
This commit is contained in:
7
bsp_linux/utility/CMakeLists.txt
Normal file
7
bsp_linux/utility/CMakeLists.txt
Normal file
@ -0,0 +1,7 @@
|
||||
target_sources(${TARGET_NAME}
|
||||
PUBLIC
|
||||
printChar.c
|
||||
)
|
||||
|
||||
|
||||
|
21
bsp_linux/utility/printChar.c
Normal file
21
bsp_linux/utility/printChar.c
Normal file
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user