mirror of https://github.com/PrimeDecomp/prime.git
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);
|
||
|
}
|