Added documentation for try_builtin
This commit is contained in:
parent
627c3057e9
commit
4a1fa12941
1 changed files with 6 additions and 0 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue