summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:13:43 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:13:43 +0200
commit198d872ecf557d8a658f1cf8db44ff51889f4511 (patch)
treec1711d849ea04c0f1799292303acae555ecf9859 /src
parentNormed b_sqb_file (diff)
download42-minishell-198d872ecf557d8a658f1cf8db44ff51889f4511.tar.gz
42-minishell-198d872ecf557d8a658f1cf8db44ff51889f4511.tar.bz2
42-minishell-198d872ecf557d8a658f1cf8db44ff51889f4511.tar.xz
42-minishell-198d872ecf557d8a658f1cf8db44ff51889f4511.tar.zst
42-minishell-198d872ecf557d8a658f1cf8db44ff51889f4511.zip
Normed b_sqb_nbr
Diffstat (limited to 'src')
-rw-r--r--src/b_sqb_nbr.c9
-rw-r--r--src/b_sqb_nbr.h6
2 files changed, 5 insertions, 10 deletions
diff --git a/src/b_sqb_nbr.c b/src/b_sqb_nbr.c
index 6ea2456..728a752 100644
--- a/src/b_sqb_nbr.c
+++ b/src/b_sqb_nbr.c
@@ -15,10 +15,7 @@
#include "d_define.h"
-static t_bool
- b_sqb_nbr_tests(uint8_t id,
- int32_t n1,
- int32_t n2)
+static t_bool b_sqb_nbr_tests(uint8_t id, int32_t n1, int32_t n2)
{
if (id == FT_ID_SQB_EQ && n1 == n2)
return (TRUE);
@@ -35,9 +32,7 @@ static t_bool
return (FALSE);
}
-uint8_t
- b_sqb_nbr(uint8_t id,
- char *argv[])
+uint8_t b_sqb_nbr(uint8_t id, char *argv[])
{
if (b_sqb_nbr_tests(id, ft_atoi(argv[0]), ft_atoi(argv[2])) == TRUE)
return (0);
diff --git a/src/b_sqb_nbr.h b/src/b_sqb_nbr.h
index ecdf901..28eccd1 100644
--- a/src/b_sqb_nbr.h
+++ b/src/b_sqb_nbr.h
@@ -10,10 +10,10 @@
/* */
/* ************************************************************************** */
-#ifndef B_SQB_NBR_H
-#define B_SQB_NBR_H
+#ifndef FT_B_SQB_NBR_H
+# define FT_B_SQB_NBR_H
-#include <stdint.h>
+# include <stdint.h>
uint8_t b_sqb_nbr(uint8_t id, char *argv[]);