diff options
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); |