From: Steven Baltakatei Sandoval Date: Fri, 14 Jul 2023 02:58:38 +0000 (+0000) Subject: feat(src/kr/ch1/s1.1/p6):Add hello world example X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2023-05.git/commitdiff_plain/bbe4583b268f937782c231ce4a0ce6ce16d7ef6a?hp=43a3f88a9cc614c3f08a86cc89076e0cec2312b8 feat(src/kr/ch1/s1.1/p6):Add hello world example --- diff --git a/src/kr_exercises/ch1/s1.1/p6_hello_world/.gitignore b/src/kr_exercises/ch1/s1.1/p6_hello_world/.gitignore new file mode 100644 index 0000000..ce01362 --- /dev/null +++ b/src/kr_exercises/ch1/s1.1/p6_hello_world/.gitignore @@ -0,0 +1 @@ +hello diff --git a/src/kr_exercises/ch1/s1.1/p6_hello_world/Makefile b/src/kr_exercises/ch1/s1.1/p6_hello_world/Makefile new file mode 100644 index 0000000..2a06090 --- /dev/null +++ b/src/kr_exercises/ch1/s1.1/p6_hello_world/Makefile @@ -0,0 +1,10 @@ +CC=gcc +CFLAGS=-Wall -Wextra -pedantic +OUTFILE=hello +SOURCE=hello.c + +all: $(SOURCE) + $(CC) $(CFLAGS) -o $(OUTFILE) $(SOURCE) + +clean: + rm -f $(OUTFILE) diff --git a/src/kr_exercises/ch1/s1.1/p6_hello_world/hello.c b/src/kr_exercises/ch1/s1.1/p6_hello_world/hello.c new file mode 100644 index 0000000..a4cee5f --- /dev/null +++ b/src/kr_exercises/ch1/s1.1/p6_hello_world/hello.c @@ -0,0 +1,5 @@ +#include + +main() { + printf("hello, world\n"); +}