From 6450dd00b959c8b74cdb5c151588072e33bad91e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 26 Aug 2020 17:16:32 +0200 Subject: New comparison strings stuff --- src/b_sqb_str.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/b_sqb_str.c') diff --git a/src/b_sqb_str.c b/src/b_sqb_str.c index 7c6a160..cc7e4ed 100644 --- a/src/b_sqb_str.c +++ b/src/b_sqb_str.c @@ -33,13 +33,20 @@ uint8_t b_sqb_str(uint8_t id, char *argv[]) { - if (id == FT_ID_SQB_Z) + if (id == FT_ID_SQB_N) { if (argv[1][0] != '\0') return (0); else return (1); } + else if (id == FT_ID_SQB_Z) + { + if (argv[1][0] == '\0') + return (0); + else + return (1); + } if (b_sqb_str_comp(id, argv[0], argv[2]) == TRUE) return (0); return (1); -- cgit v1.2.3