aboutsummaryrefslogtreecommitdiff
path: root/c08/ex02
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-15 08:15:37 +0200
committerCabergs Charles <cacharle@e-r6-p7.s19.be>2019-07-15 08:15:37 +0200
commit6bf5dd01493dd6bf644a4896c666535e5eaa8d67 (patch)
tree25b02c02f5140dbefbabd7720f292d8be3d5cc51 /c08/ex02
parente8ab18a2c724c0acfa1688a62bc2042471d68e39 (diff)
downloadpiscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.tar.gz
piscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.tar.bz2
piscine-6bf5dd01493dd6bf644a4896c666535e5eaa8d67.zip
c07 passed, c08 in progress, rush01(+ 6x6 try)
Diffstat (limited to 'c08/ex02')
-rw-r--r--c08/ex02/ft_abs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/c08/ex02/ft_abs.h b/c08/ex02/ft_abs.h
index 9a41241..ba01929 100644
--- a/c08/ex02/ft_abs.h
+++ b/c08/ex02/ft_abs.h
@@ -6,13 +6,13 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/07 17:09:37 by cacharle #+# #+# */
-/* Updated: 2019/07/07 17:11:50 by cacharle ### ########.fr */
+/* Updated: 2019/07/13 08:56:29 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_ABS_H
-#define FT_ABS_H
+# define FT_ABS_H
-#define ABS(x) (x < 0 ? -x : x)
+# define ABS(x) ( ( (x) < 0) ? -(x) : (x) )
#endif