1
0
mirror of https://github.com/krislamo/knrc.git synced 2026-06-01 04:53:26 +00:00

Compile simple stdout message

I set a return type on the main function to clear a GCC warning
in a slight deviation from the book.
This commit is contained in:
2021-11-03 00:02:07 -04:00
commit 3e078042a4
3 changed files with 12 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
int main()
{
printf("hello, world\n");
}
+4
View File
@@ -0,0 +1,4 @@
all: hello
hello: 01-hello-world.c
gcc -o ./bin/01-helloworld 01-hello-world.c
+2
View File
@@ -0,0 +1,2 @@
*
!.gitignore