summaryrefslogtreecommitdiffstats
path: root/src/u_utils.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-28 01:26:44 +0100
commitf6faf88cd0991be3184af67d5fa271b12f70e925 (patch)
tree02c283541fd2c0b4ccacd31172cccf2ba9711c51 /src/u_utils.c
parentNorming in progress (diff)
download42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.gz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.bz2
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.xz
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.tar.zst
42-minishell-f6faf88cd0991be3184af67d5fa271b12f70e925.zip
Norming
Diffstat (limited to 'src/u_utils.c')
-rw-r--r--src/u_utils.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/u_utils.c b/src/u_utils.c
index 5394705..902b7a8 100644
--- a/src/u_utils.c
+++ b/src/u_utils.c
@@ -18,7 +18,7 @@
#include "f_fail.h"
#include "s_struct.h"
-t_bool u_is_not_escaped(const char *head, const char *ptr)
+t_bool u_is_not_escaped(const char *head, const char *ptr)
{
if (((ptr - head) == 0) ||
((ptr - head) >= 1 && *(ptr - 1) != C_BACKS) ||
@@ -27,7 +27,7 @@ t_bool u_is_not_escaped(const char *head, const char *ptr)
return (FALSE);
}
-void u_eof_fd(int fd)
+void u_eof_fd(int fd)
{
char *line;
@@ -36,7 +36,7 @@ void u_eof_fd(int fd)
ft_memdel((void*)&line);
}
-char **u_get_env_var_names(t_msh *msh)
+char **u_get_env_var_names(t_msh *msh)
{
char **vars;
size_t i;
@@ -72,10 +72,10 @@ unsigned long u_builtins_get_argc(const char *args[])
return (argc);
}
-unsigned char u_get_builtin_id(const char bin[])
+unsigned char u_get_builtin_id(const char bin[])
{
- char tmp[M_BUILTINS_REF_LEN];
- char *tok;
+ char tmp[M_BUILTINS_REF_LEN];
+ char *tok;
unsigned char i;
i = 0;