aboutsummaryrefslogtreecommitdiff
path: root/c08/ex02
diff options
context:
space:
mode:
Diffstat (limited to 'c08/ex02')
-rw-r--r--c08/ex02/ft_abs.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/c08/ex02/ft_abs.h b/c08/ex02/ft_abs.h
new file mode 100644
index 0000000..9a41241
--- /dev/null
+++ b/c08/ex02/ft_abs.h
@@ -0,0 +1,18 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_abs.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* 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 */
+/* */
+/* ************************************************************************** */
+
+#ifndef FT_ABS_H
+#define FT_ABS_H
+
+#define ABS(x) (x < 0 ? -x : x)
+
+#endif