nearly TGIF \o/
norming some functions + added objs dir
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/02/27 11:58:44 by tmaze #+# #+# */
|
||||
/* Updated: 2019/02/27 17:15:04 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/02/28 16:12:07 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -30,7 +30,7 @@ int ft_atois(const char *str, int *nb)
|
||||
*nb = 0;
|
||||
mult = 1;
|
||||
while (num >= 0 && ft_isdigit(str[num]) &&
|
||||
(ft_abs(max - *nb) >= 2000000000))
|
||||
(ft_abs(max - *nb) >= 2000000000))
|
||||
{
|
||||
*nb += (str[num--] - '0') * mult;
|
||||
mult *= 10;
|
||||
|
Reference in New Issue
Block a user