#include <stdlib.h>
int abs(int i);
int abs
This function accepts a signed int value and returns the absolute value, as a signed int value which is positive.
labs, stdlib
Getting the absolute value