21 lines
471 B
C
21 lines
471 B
C
#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 ();
|
|
}
|