llabs - Returns long long absolute value of num in C


  #include <stdlib.h>
  #include <stdio.h>
 
  int main(void){

    char num[80];

    printf("a number:");
    gets(num);

    return llabs(atol(num));
}