abs.c raw

   1  #include <stdlib.h>
   2  
   3  int abs(int a)
   4  {
   5  	return a>0 ? a : -a;
   6  }
   7