aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-05-03 10:32:53 +0900
committernsfisis <nsfisis@gmail.com>2025-05-03 10:32:53 +0900
commit441a78966e5fa230290dec0f96651fe88f45c36b (patch)
tree5678cb2f8e6dab3463dcc1e2fe76952de99b91de
parent84b78d9895f4b794c006fba3284f29a250a47588 (diff)
downloadP4Dcc-441a78966e5fa230290dec0f96651fe88f45c36b.tar.gz
P4Dcc-441a78966e5fa230290dec0f96651fe88f45c36b.tar.zst
P4Dcc-441a78966e5fa230290dec0f96651fe88f45c36b.zip
hello world
-rw-r--r--.gitignore1
-rw-r--r--justfile9
-rw-r--r--main.c6
3 files changed, 16 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7fc71cc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/a.out
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..52cf61c
--- /dev/null
+++ b/justfile
@@ -0,0 +1,9 @@
+CFLAGS := "-Wno-builtin-declaration-mismatch"
+
+all: build
+
+build:
+ gcc main.c {{CFLAGS}}
+
+clean:
+ rm a.out
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..d96c299
--- /dev/null
+++ b/main.c
@@ -0,0 +1,6 @@
+int printf();
+
+int main() {
+ printf("Hello, World!\n");
+ return 0;
+}