diff options
Diffstat (limited to 'lib/libc/stdlib/abs.c')
| -rw-r--r-- | lib/libc/stdlib/abs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdlib/abs.c b/lib/libc/stdlib/abs.c index ac2bc605..5c510567 100644 --- a/lib/libc/stdlib/abs.c +++ b/lib/libc/stdlib/abs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> // for abs + int abs(int i) { return (i < 0) ? -i : i; |
