summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAbdellah El Morabit <nsrddyn@gmail.com>2025-02-19 11:33:03 +0100
committerAbdellah El Morabit <nsrddyn@gmail.com>2025-02-19 11:33:03 +0100
commit74ca1e906a40e247376fea9aa8eb27efc764e0db (patch)
tree05fbd95d3d42e1089d8d17242104da11e73c3eb6 /main.c
parent747896d1d1dcdfa1c066ca05a0103e4464a584a6 (diff)
this structure defines the data format for us to execute a command based on the user input
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index d9fccd3..617f78d 100644
--- a/main.c
+++ b/main.c
@@ -14,8 +14,8 @@ struct command {
};
struct exec_command {
- struct command *cmd;
- void (*func);
+ const char *cmd;
+ void (*func)(const char *);
};