diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-12 18:11:56 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-12 18:11:56 +0200 |
commit | 3f726e2433438176a6b7f73df7d6bf51a185c5b2 (patch) | |
tree | 3aec31db54442d72feab07c2aaa57740e30c3ee3 /src/b_alias.c | |
parent | In progress (diff) | |
download | 42-minishell-3f726e2433438176a6b7f73df7d6bf51a185c5b2.tar.gz 42-minishell-3f726e2433438176a6b7f73df7d6bf51a185c5b2.tar.bz2 42-minishell-3f726e2433438176a6b7f73df7d6bf51a185c5b2.tar.xz 42-minishell-3f726e2433438176a6b7f73df7d6bf51a185c5b2.tar.zst 42-minishell-3f726e2433438176a6b7f73df7d6bf51a185c5b2.zip |
Fix
Diffstat (limited to 'src/b_alias.c')
-rw-r--r-- | src/b_alias.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/b_alias.c b/src/b_alias.c index 55b7232..5ca86da 100644 --- a/src/b_alias.c +++ b/src/b_alias.c @@ -28,11 +28,13 @@ static void /* char buff[255][255][ARG_MAX]; */ ptr = msh->alias; + i = 0; while (ptr != NULL) { - ft_printf("alias %s='%s'\n", ptr->name, ptr->val); ptr = ptr->next; + i++; } + ft_printf("alias %s='%s'\n", ptr->name, ptr->val); } static uint8_t |