1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30:35 +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:
Kris Lamoureux 2021-11-03 00:02:07 -04:00
commit 3e078042a4
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 12 additions and 0 deletions

6
01-hello-world.c Normal file
View File

@ -0,0 +1,6 @@
#include <stdio.h>
int main()
{
printf("hello, world\n");
}

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
all: hello
hello: 01-hello-world.c
gcc -o ./bin/01-helloworld 01-hello-world.c

2
bin/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore