aboutsummaryrefslogtreecommitdiff
path: root/c08/ex02/ft_abs.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-08 12:12:58 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-08 12:12:58 +0200
commit03b4d8a03fb1b2cf93aaac0dc9d317ff9c2ba705 (patch)
tree5888339d16bd74b1cd14a63b8c5ecf39fb9091f2 /c08/ex02/ft_abs.h
parenta2ef228b981df5ad417a0e8377e1e832002a7644 (diff)
downloadpiscine-03b4d8a03fb1b2cf93aaac0dc9d317ff9c2ba705.tar.gz
piscine-03b4d8a03fb1b2cf93aaac0dc9d317ff9c2ba705.tar.bz2
piscine-03b4d8a03fb1b2cf93aaac0dc9d317ff9c2ba705.zip
c05/c06 normed, c07/c08 begining
Diffstat (limited to 'c08/ex02/ft_abs.h')
-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