From 198d872ecf557d8a658f1cf8db44ff51889f4511 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 30 Sep 2020 18:13:43 +0200 Subject: Normed b_sqb_nbr --- src/b_sqb_nbr.c | 9 ++------- src/b_sqb_nbr.h | 6 +++--- 2 files changed, 5 insertions(+), 10 deletions(-) (limited to 'src') 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 +# include uint8_t b_sqb_nbr(uint8_t id, char *argv[]); -- cgit v1.2.3