diff options
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/abs.c | 2 | ||||
| -rw-r--r-- | src/stdlib/labs.c | 2 | ||||
| -rw-r--r-- | src/stdlib/llabs.c | 2 | 
3 files changed, 6 insertions, 0 deletions
| diff --git a/src/stdlib/abs.c b/src/stdlib/abs.c index 4806d629..e721fdc2 100644 --- a/src/stdlib/abs.c +++ b/src/stdlib/abs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> +  int abs(int a)  {  	return a>0 ? a : -a; diff --git a/src/stdlib/labs.c b/src/stdlib/labs.c index 675b95b8..83ddb147 100644 --- a/src/stdlib/labs.c +++ b/src/stdlib/labs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> +  long labs(long a)  {  	return a>0 ? a : -a; diff --git a/src/stdlib/llabs.c b/src/stdlib/llabs.c index bec4a03d..9dfaf5cf 100644 --- a/src/stdlib/llabs.c +++ b/src/stdlib/llabs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> +  long long llabs(long long a)  {  	return a>0 ? a : -a; | 
