diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-26 16:59:10 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-26 16:59:10 +0200 |
commit | 50bcdd00048869327d576021ae85d7d10ec6f012 (patch) | |
tree | 41a6eaf4ee0212ec7475bf0c2e00bd76f169d3fb /src/b_sqb_str.c | |
parent | -nt abd -ot are bav (diff) | |
download | 42-minishell-50bcdd00048869327d576021ae85d7d10ec6f012.tar.gz 42-minishell-50bcdd00048869327d576021ae85d7d10ec6f012.tar.bz2 42-minishell-50bcdd00048869327d576021ae85d7d10ec6f012.tar.xz 42-minishell-50bcdd00048869327d576021ae85d7d10ec6f012.tar.zst 42-minishell-50bcdd00048869327d576021ae85d7d10ec6f012.zip |
New files
Diffstat (limited to 'src/b_sqb_str.c')
-rw-r--r-- | src/b_sqb_str.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/b_sqb_str.c b/src/b_sqb_str.c new file mode 100644 index 0000000..0b23d7b --- /dev/null +++ b/src/b_sqb_str.c @@ -0,0 +1,29 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* b_sqb_str.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <stdint.h> + +#include "d_define.h" + +uint8_t + b_sqb_str(uint8_t id, + char *argv[]) +{ + if (id == FT_ID_SQB_Z) + { + if (argv[1][0] != '\0') + return (0); + else + return (1); + } + return (1); +} |