From 74ca1e906a40e247376fea9aa8eb27efc764e0db Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Wed, 19 Feb 2025 11:33:03 +0100 Subject: this structure defines the data format for us to execute a command based on the user input --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.c') 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 *); }; -- cgit v1.2.3-70-g09d2