mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-06-21 08:33:28 +00:00
16 lines
169 B
C
16 lines
169 B
C
#include <stdlib.h>
|
|
|
|
int abs(int n) {
|
|
if (n < 0)
|
|
return (-n);
|
|
else
|
|
return (n);
|
|
}
|
|
|
|
long labs(long n) {
|
|
if (n < 0)
|
|
return (-n);
|
|
else
|
|
return (n);
|
|
}
|