summaryrefslogblamecommitdiff
path: root/src/stdlib/imaxabs.c
blob: 8100181930e62701d1e8794b5d845980b762ceb0 (plain) (tree)
1
2
3
4
5
6





                            
#include <inttypes.h>

intmax_t imaxabs(intmax_t a)
{
	return a>0 ? a : -a;
}