summaryrefslogtreecommitdiff
path: root/src/stdlib/labs.c
blob: 675b95b8ef762df5671591c64680eb593f1babcc (plain) (blame)
1
2
3
4
long labs(long a)
{
	return a>0 ? a : -a;
}