summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2025-02-22 22:45:11 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2025-02-22 22:45:11 +0100
commit054e9d7393bac2f51be121308f5f3916ad9ab875 (patch)
treebf6d25bad45cd6522ab5a4685efa28b3f1b79304 /main.c
parent34d7d91bc56f32602430532646f092701a350fe0 (diff)
splitting the argument in to the source and the destination file, only for certain commands
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index d6f6dfd..14c8861 100644
--- a/main.c
+++ b/main.c
@@ -21,6 +21,11 @@ struct exec_command {
void (*func)(const char *);
};
+struct split_arg {
+ const char *source;
+ const char *destination;
+};
+
// code prototype functions
struct command split_command(char *input);