diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-27 19:59:20 +0100 |
commit | c5aae008dee36276154882d8fd56c3bdeb473474 (patch) | |
tree | a40740914847ebf39a5f8cb3acf6a48c8b9d61ef /src/u_utils.c | |
parent | TODO update (diff) | |
download | 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.gz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.bz2 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.xz 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.tar.zst 42-minishell-c5aae008dee36276154882d8fd56c3bdeb473474.zip |
Now norme
Diffstat (limited to 'src/u_utils.c')
-rw-r--r-- | src/u_utils.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index d56d7c0..5394705 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -12,7 +12,6 @@ #include <libft.h> #include <stdlib.h> -#include <stdint.h> #include <unistd.h> #include "d_define.h" @@ -28,7 +27,7 @@ t_bool u_is_not_escaped(const char *head, const char *ptr) return (FALSE); } -void u_eof_fd(int32_t fd) +void u_eof_fd(int fd) { char *line; @@ -61,9 +60,9 @@ char **u_get_env_var_names(t_msh *msh) return (vars); } -uint64_t u_builtins_get_argc(const char *args[]) +unsigned long u_builtins_get_argc(const char *args[]) { - uint64_t argc; + unsigned long argc; argc = 0; while (args[argc] != NULL) @@ -73,11 +72,11 @@ uint64_t u_builtins_get_argc(const char *args[]) return (argc); } -uint8_t u_get_builtin_id(const char bin[]) +unsigned char u_get_builtin_id(const char bin[]) { char tmp[M_BUILTINS_REF_LEN]; char *tok; - uint8_t i; + unsigned char i; i = 0; ft_strlcpy(tmp, M_BUILTINS_REF, M_BUILTINS_REF_LEN); |