code: purgatorio

ref: acc58dfee42368825f7595d63240fd6e88559776
dir: /libkern/abs.c/

View raw version
#include <lib9.h>

int
abs(int a)
{
	if(a < 0)
		return -a;
	return a;
}

long
labs(long a)
{
	if(a < 0)
		return -a;
	return a;
}