From 4a1fa12941cc04a380e47efa5e1d15fb6b283428 Mon Sep 17 00:00:00 2001 From: Jean Herail Date: Wed, 21 Jan 2026 19:39:11 +0100 Subject: [PATCH] Added documentation for try_builtin --- src/execution/execution.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/execution/execution.c b/src/execution/execution.c index a882397..ec0fe21 100644 --- a/src/execution/execution.c +++ b/src/execution/execution.c @@ -116,6 +116,12 @@ static int builtin_cd(char **argv) return 0; } +/** + * @brief Tries to execute a builtin command if the command matches a builtin + * + * @param argv Array of command arguments + * @return int Exit status of the builtin command, or -1 if not a builtin + */ static int try_builtin(char **argv) { if (!argv || !argv[0])