29 lines
955 B
C
29 lines
955 B
C
/*
|
|
Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
|
|
|
|
Xhartae is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
|
|
And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
|
|
It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
|
|
*/
|
|
|
|
#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 ();
|
|
}
|