summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:15:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:15:01 +0200
commita674aac53a116329a2af66a12521c334a28fa51b (patch)
tree946345d279d44167ad31e94c9803fe4c5e92b2e6
parentBetter normed (diff)
download42-minishell-a674aac53a116329a2af66a12521c334a28fa51b.tar.gz
42-minishell-a674aac53a116329a2af66a12521c334a28fa51b.tar.bz2
42-minishell-a674aac53a116329a2af66a12521c334a28fa51b.tar.xz
42-minishell-a674aac53a116329a2af66a12521c334a28fa51b.tar.zst
42-minishell-a674aac53a116329a2af66a12521c334a28fa51b.zip
Normed b_sqb_str
-rw-r--r--src/b_sqb_str.c9
-rw-r--r--src/b_sqb_str.h6
2 files changed, 5 insertions, 10 deletions
diff --git a/src/b_sqb_str.c b/src/b_sqb_str.c
index d3a1978..0b2693c 100644
--- a/src/b_sqb_str.c
+++ b/src/b_sqb_str.c
@@ -15,10 +15,7 @@
#include "d_define.h"
-static t_bool
- b_sqb_str_comp(uint8_t id,
- const char s1[],
- const char s2[])
+static t_bool b_sqb_str_comp(uint8_t id, const char s1[], const char s2[])
{
if (id == FT_ID_SQB_EQUA &&
ft_strncmp(s1, s2, ft_strlen(s1) + 1) == 0)
@@ -29,9 +26,7 @@ static t_bool
return (FALSE);
}
-uint8_t
- b_sqb_str(uint8_t id,
- char *argv[])
+uint8_t b_sqb_str(uint8_t id, char *argv[])
{
if (id == FT_ID_SQB_N)
{
diff --git a/src/b_sqb_str.h b/src/b_sqb_str.h
index 9e27973..9d8bf1a 100644
--- a/src/b_sqb_str.h
+++ b/src/b_sqb_str.h
@@ -10,10 +10,10 @@
/* */
/* ************************************************************************** */
-#ifndef B_SQB_STR_H
-#define B_SQB_STR_H
+#ifndef FT_B_SQB_STR_H
+# define FT_B_SQB_STR_H
-#include <stdint.h>
+# include <stdint.h>
uint8_t b_sqb_str(uint8_t id, char *argv[]);