init coding and test thing

This commit is contained in:
kevinnls
2021-03-29 20:19:50 +05:30
parent e7ee3ed6a2
commit 774b2a39b2
3 changed files with 137 additions and 0 deletions

24
src/main.c Normal file
View File

@@ -0,0 +1,24 @@
#include <stdio.h>
char *output = "This is output", *error = "This is an error message";
int printOut = 0, printErr = 0;
void write_stdout(){
fprintf(stdout, "%s\n", output);
}
void write_stderr(){
fprintf(stderr, "%s\n", error);
}
int main(int argc, char const *argv[]) {
if(argc > 1){
//parse the arguments
}
write_stdout();
write_stderr();
return 0;
}