diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 18:07:48 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-11 18:07:48 +0200 |
commit | 32fb33b2dea95c00dc37efd14d34c799b23d09cf (patch) | |
tree | 0c4ad12af2a00f029aadf2ee50767e621be8ae03 /src/b_alias.c | |
parent | alias utils prepared (diff) | |
download | 42-minishell-32fb33b2dea95c00dc37efd14d34c799b23d09cf.tar.gz 42-minishell-32fb33b2dea95c00dc37efd14d34c799b23d09cf.tar.bz2 42-minishell-32fb33b2dea95c00dc37efd14d34c799b23d09cf.tar.xz 42-minishell-32fb33b2dea95c00dc37efd14d34c799b23d09cf.tar.zst 42-minishell-32fb33b2dea95c00dc37efd14d34c799b23d09cf.zip |
In progress
Diffstat (limited to '')
-rw-r--r-- | src/b_alias.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/b_alias.c b/src/b_alias.c index 6848b68..3b70a02 100644 --- a/src/b_alias.c +++ b/src/b_alias.c @@ -13,10 +13,29 @@ #include <stdint.h> #include "s_struct.h" +#include "u_utils.h" + +static void + b_print_alias_list(t_msh *msh) +{ + (void)msh; +} uint8_t b_alias(char *args[], t_msh *msh) { + const uint64_t argc = u_builtins_get_argc((const char**)args); + + if (argc == 0) + { + b_print_alias_list(msh); + } + return (0); +} + +uint8_t + b_alias_mute(char *args[], t_msh *msh) +{ (void)args; (void)msh; return (0); |