xhartae/program/program_0.c

21 lines
471 B
C
Raw Normal View History

2023-11-26 06:34:52 -05:00
#include "../chapter/chapter_0.c"
static void cool_echo (char * text, int colour, int effect);
static void heyo (void) { cool_echo ("Heyo world!\n", COLOUR_GREEN, EFFECT_BOLD); }
static void cyaa (void) { cool_echo ("Cyaa world!\n", COLOUR_RED, EFFECT_BOLD); }
int main (void) {
heyo ();
cyaa ();
return (EXIT_SUCCESS);
}
void cool_echo (char * text, int colour, int effect) {
terminal_colour (colour, effect);
echo (text);
terminal_cancel ();
}