diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-11-06 22:21:04 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-11-06 22:21:04 +0100 |
commit | edb4aa1304435b17d62a7d925df2c95bdb854079 (patch) | |
tree | 6fb155b42e8a6d6cf85034b00679583751641722 /src/c_input.c | |
parent | major changes to ctrlc + c, no norm for now (diff) | |
download | 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.gz 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.bz2 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.xz 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.tar.zst 42-minishell-edb4aa1304435b17d62a7d925df2c95bdb854079.zip |
static something
Diffstat (limited to 'src/c_input.c')
-rw-r--r-- | src/c_input.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_input.c b/src/c_input.c index 5e7e937..f26bbad 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -24,13 +24,13 @@ #include "m_loop.h" t_msh - *c_get_struct(int mode, t_msh *msh) + *c_get_struct(int mode, t_msh **msh) { static t_msh *mstruct = NULL; if (mode) { - mstruct = msh; + mstruct = *msh; } return (mstruct); } @@ -42,9 +42,9 @@ void c_signal_int(int signo) msh = NULL; signal(SIGINT, c_signal_int); (void)signo; - msh = c_get_struct(0, msh); + msh = c_get_struct(0, &msh); + ft_printf("[%s]\n", msh->ps[0]); msh->ret = 130; - write(1, "qwe", 3); ioctl(1, TIOCSTI, "\002"); } |