diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:46:03 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:46:03 +0200 |
commit | 5eb753276ff9052d3ef93fd2b931a9bfb482590c (patch) | |
tree | e0dcc220be90eff1224b9ee1ee706253cb63ef2f /src/b_sqb_str.c | |
parent | Names update (diff) | |
download | 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.gz 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.bz2 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.xz 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.zst 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.zip |
Renamed quite some stuff
Diffstat (limited to '')
-rw-r--r-- | src/b_sqb_str.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/b_sqb_str.c b/src/b_sqb_str.c index 0b2693c..fa4381a 100644 --- a/src/b_sqb_str.c +++ b/src/b_sqb_str.c @@ -17,10 +17,10 @@ static t_bool b_sqb_str_comp(uint8_t id, const char s1[], const char s2[]) { - if (id == FT_ID_SQB_EQUA && + if (id == B_ID_SQB_EQUA && ft_strncmp(s1, s2, ft_strlen(s1) + 1) == 0) return (TRUE); - else if (id == FT_ID_SQB_EQUA && + else if (id == B_ID_SQB_EQUA && ft_strncmp(s1, s2, ft_strlen(s1) + 1) != 0) return (TRUE); return (FALSE); @@ -28,14 +28,14 @@ static t_bool b_sqb_str_comp(uint8_t id, const char s1[], const char s2[]) uint8_t b_sqb_str(uint8_t id, char *argv[]) { - if (id == FT_ID_SQB_N) + if (id == B_ID_SQB_N) { if (argv[1][0] != '\0') return (0); else return (1); } - else if (id == FT_ID_SQB_Z) + else if (id == B_ID_SQB_Z) { if (argv[1][0] == '\0') return (0); |