From 88d3515ae85924b8aea8c0546d33451ee369b7dd Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 27 Apr 2023 14:38:16 -0400 Subject: initial --- src/command.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/command.h (limited to 'src/command.h') diff --git a/src/command.h b/src/command.h new file mode 100644 index 0000000..4f44ab0 --- /dev/null +++ b/src/command.h @@ -0,0 +1,13 @@ +#include "shared.h" + +#include +#include +#include + +#define ARGUMENTS int argc, char** argv +#define NEXT_ARGS argc - 1, &argv[1] +#define COMMAND(name) int name (ARGUMENTS) + +COMMAND(dd); +COMMAND(cat); +COMMAND(yes); -- cgit v1.2.3-freya