diff options
author | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-27 14:38:16 -0400 |
---|---|---|
committer | Tyler Murphy <tylerm@tylerm.dev> | 2023-04-27 14:38:16 -0400 |
commit | 88d3515ae85924b8aea8c0546d33451ee369b7dd (patch) | |
tree | a5b825af7959d79bbd00f0dcfa5987671cb84c1a /src/command.h | |
download | lazysphere-88d3515ae85924b8aea8c0546d33451ee369b7dd.tar.gz lazysphere-88d3515ae85924b8aea8c0546d33451ee369b7dd.tar.bz2 lazysphere-88d3515ae85924b8aea8c0546d33451ee369b7dd.zip |
initial
Diffstat (limited to 'src/command.h')
-rw-r--r-- | src/command.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <stdint.h> +#include <stdlib.h> +#include <stdbool.h> + +#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); |