prime/src/Runtime/arith.c
Phillip Stephens 41f47c198d Add musyx/stream.c, match and link arith.c
Former-commit-id: 7bd0748d30892d576227fc31a3ca42857fac50d1
2022-11-29 23:07:31 -08:00

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);
}