log10 function returns common logarithm (base is 10) of a number.
Declaration: double log10(double number);
C programming code for log10
double n, result;
printf("Enter a number to calculate it's log(base is 10)\n");
result = log10(n);
printf("Common log of %.2lf = %.2lf\n", n, result);
Output of program: