diff options
author | Salad <water_appreciator@protonmail.com> | 2020-10-02 16:55:52 +0200 |
---|---|---|
committer | Salad <water_appreciator@protonmail.com> | 2020-10-02 16:55:52 +0200 |
commit | b6b09fc1fa8e4f70f042cfe48f26b28d798498d3 (patch) | |
tree | 22ec864530fc4a0a9e642bdf35c42b2dacc93e95 /src/c_input.c | |
parent | lessgo (diff) | |
download | 42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.gz 42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.bz2 42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.xz 42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.tar.zst 42-minishell-b6b09fc1fa8e4f70f042cfe48f26b28d798498d3.zip |
almost there : norme + miltiligne
Diffstat (limited to '')
-rw-r--r-- | src/c_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_input.c b/src/c_input.c index d3360cd..1cc8814 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -22,7 +22,7 @@ #include "m_loop.h" int16_t - c_init_line(t_caps *tcaps) + c_init_line(uint8_t psx, t_caps *tcaps) { if (tcaps) { @@ -30,6 +30,7 @@ int16_t signal(SIGINT, SIG_IGN); tcaps->cpos = 0; tcaps->lpos = 0; + tcaps->psx = psx - 1; return (1); } else |