diff --git a/c/loger.c b/c/loger.c new file mode 100644 index 0000000..b1d9208 --- /dev/null +++ b/c/loger.c @@ -0,0 +1,29 @@ +#include + + +/*prints the given string in cyan + +*/ +void info(char message[]) { + + printf(" \e[0;36m%s\e[0m\n", message); + return; +} + +/*prints the given string in RED with a ERROR before + +*/ +void error(char message[]) { + + printf("[\e[1;91mERROR\e[0m] \e[0;91m%s\e[0m\n", message); + return; +} + +/*prints the given string in yellow with a INFO before + +*/ +void warning(char message[]) { + + printf("[\e[1;93mINFO\e[0m] \e[0;93m%s\e[0m\n", message); + return; +}