log10 - Calculates base 10 logarithm in C

#include <math.h>
#include <stdio.h>

int main(void)
{
    double val = 10.0;
    printf("%f %f\n", val, log10(val));
    return 0;
}

Output : 1.0000