aboutsummaryrefslogtreecommitdiffstats
path: root/math/labs.c
diff options
context:
space:
mode:
Diffstat (limited to 'math/labs.c')
-rw-r--r--math/labs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/math/labs.c b/math/labs.c
new file mode 100644
index 0000000..cf2cae8
--- /dev/null
+++ b/math/labs.c
@@ -0,0 +1,3 @@
+#include "maths.h"
+
+extern long labs(long n) { return n < 0 ? -n : n; }