imaxabs.c 78 B

123456
  1. #include <inttypes.h>
  2. intmax_t imaxabs(intmax_t a)
  3. {
  4. return a>0 ? a : -a;
  5. }