Skip to content

Commit

Permalink
Merge pull request #32 from saurier/saurierbranch
Browse files Browse the repository at this point in the history
Lesson5: add hello_sauier function to hello.c
  • Loading branch information
a-vodka authored Dec 13, 2022
2 parents 96499a1 + 6f2bcdf commit 9b94c5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <stdio.h>
#define KGRN "\x1B[32m"
#define KCYN "\x1B[36m"

void hello_slava(void)
{
Expand Down Expand Up @@ -26,6 +28,12 @@ void printGreeting(){
printf("Hello, BaseCamp!");
}

voi hello_saurier()
{
printf("%sHi from Saurier!\n", KGRN);
printf("%sHi from Saurier, but blue!\n", KCYN);
}

int main()
{
hello_slava();
Expand All @@ -41,6 +49,7 @@ int main()
printf("hey you\n");
printf("green\n");

hello_saurier();
return 0;
}

0 comments on commit 9b94c5c

Please sign in to comment.