/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_abs.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/05/05 16:44:52 by tmaze #+# #+# */ /* Updated: 2018/05/05 16:49:04 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" unsigned int ft_abs(int nb) { if (nb < 0) return (nb * -1); return (nb); }