13 #include "../ft_is/ft_is.h"
14 #include "../ft_math/ft_math.h"
25 c_value = (c -
'0') * sign;
28 *value = (*value * 10) + c_value;
36 if (str == NULL || dst == NULL)
43 if (*str ==
'-' || *str ==
'+')
bool can_add(int a, int b)
bool can_mul(int a, int b)
static bool set_value(char c, int *value, int sign)
bool ft_atoi_strict(const char *str, const char **endptr, int *dst)