From 9a9e566536c023ed6fa9cec7180880bf9ddce864 Mon Sep 17 00:00:00 2001 From: Alan Potteiger Date: Thu, 24 Nov 2022 00:20:07 +0100 Subject: [PATCH] `true` and `false`. too easy lmao --- Makefile | 2 +- false.c | 11 +++++++++++ true.c | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 false.c create mode 100644 true.c diff --git a/Makefile b/Makefile index ad70ac1..590ac6f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -BIN=cat chmod head logname pwd sleep tty uname +BIN=cat chmod false head logname pwd sleep true tty uname LIB=liblab.a CFLAGS=-std=c99 -L./ -llab all: $(LIB) $(BIN) diff --git a/false.c b/false.c new file mode 100644 index 0000000..879fd7e --- /dev/null +++ b/false.c @@ -0,0 +1,11 @@ +/* `false.c` - return false value + Copyright (c) 2022, Alan Potteiger + See `LICENSE` for copyright and license details */ + +int +main() +{ + /* brain melted */ + return 1; +} + diff --git a/true.c b/true.c new file mode 100644 index 0000000..d219e3d --- /dev/null +++ b/true.c @@ -0,0 +1,11 @@ +/* `true.c` - return true value + Copyright (c) 2022, Alan Potteiger + See `LICENSE` for copyright and license details */ + +int +main() +{ + /* brain melted */ + return 0; +} + -- 2.11.4.GIT