diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-03 17:04:30 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-03 17:04:30 +0200 |
commit | 3b32afb082ba823885ac355413294b5e7ff3c360 (patch) | |
tree | d7e681414cad330888bad6d7ddf0a22479c934ab /src | |
parent | Cleaner headers (diff) | |
download | 42-minishell-3b32afb082ba823885ac355413294b5e7ff3c360.tar.gz 42-minishell-3b32afb082ba823885ac355413294b5e7ff3c360.tar.bz2 42-minishell-3b32afb082ba823885ac355413294b5e7ff3c360.tar.xz 42-minishell-3b32afb082ba823885ac355413294b5e7ff3c360.tar.zst 42-minishell-3b32afb082ba823885ac355413294b5e7ff3c360.zip |
Changed function name
Diffstat (limited to 'src')
-rw-r--r-- | src/b_cd.c | 2 | ||||
-rw-r--r-- | src/b_echo.c | 2 | ||||
-rw-r--r-- | src/b_exit.c | 2 | ||||
-rw-r--r-- | src/b_export.c | 2 | ||||
-rw-r--r-- | src/u_utils.c | 2 | ||||
-rw-r--r-- | src/u_utils.h | 2 |
6 files changed, 6 insertions, 6 deletions
@@ -45,7 +45,7 @@ uint8_t b_cd(char *args[], t_msh *msh) { - const uint64_t argc = get_argc((const char**)args); + const uint64_t argc = u_builtins_get_argc((const char**)args); char *path; if (argc >= 2) diff --git a/src/b_echo.c b/src/b_echo.c index a02dad5..7b998d7 100644 --- a/src/b_echo.c +++ b/src/b_echo.c @@ -81,7 +81,7 @@ uint8_t b_echo(char *args[], t_msh *msh) { - const uint64_t argc = get_argc((const char **)args); + const uint64_t argc = u_builtins_get_argc((const char **)args); char **ptr; char *str; int8_t nopt; diff --git a/src/b_exit.c b/src/b_exit.c index 5f1c446..5384d25 100644 --- a/src/b_exit.c +++ b/src/b_exit.c @@ -26,7 +26,7 @@ uint8_t t_msh *msh) { uint8_t ret; - const uint64_t argc = get_argc((const char**)args); + const uint64_t argc = u_builtins_get_argc((const char**)args); if (argc > 1) { diff --git a/src/b_export.c b/src/b_export.c index c47a8fb..fc1657e 100644 --- a/src/b_export.c +++ b/src/b_export.c @@ -86,7 +86,7 @@ uint8_t t_msh *msh) { /* TODO: norme */ - const uint64_t argc = get_argc((const char**)args); + const uint64_t argc = u_builtins_get_argc((const char**)args); char **ptr; char *varval; /* char *varname; */ diff --git a/src/u_utils.c b/src/u_utils.c index c95cbb0..20c5cfc 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -15,7 +15,7 @@ #include <stdint.h> uint64_t - get_argc(const char *args[]) + u_builtins_get_argc(const char *args[]) { uint64_t argc; diff --git a/src/u_utils.h b/src/u_utils.h index a02e7e6..d822343 100644 --- a/src/u_utils.h +++ b/src/u_utils.h @@ -15,6 +15,6 @@ #include <stdint.h> -uint64_t get_argc(const char *args[]); +uint64_t u_builtins_get_argc(const char *args[]); #endif |