musl-tcc/src/stdlib/abs.c

7 lines
62 B
C

#include <stdlib.h>
int abs(int a)
{
return a>0 ? a : -a;
}