diff options
Diffstat (limited to '')
-rw-r--r-- | src/u_utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index 5e31060..f50d861 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -13,10 +13,21 @@ #include <libft.h> #include <stdlib.h> #include <stdint.h> +#include <unistd.h> #include "f_fail.h" #include "s_struct.h" +void +u_eof_stdin(void) +{ + char *line; + + close(STDIN_FILENO); + get_next_line(STDIN_FILENO, &line); + ft_memdel((void*)&line); +} + char **u_get_env_var_names(t_msh *msh) { |