#include <stdio.h>
#include <unidades.h>

int main(void)
{
    double resultado;
    if (unidades_valor(77, "tempF", "tempC", &resultado) != 0) {
        fprintf(stderr, "%s\n", unidades_error());
        return 1;
    }
    printf("77 tempF = %.10g tempC\n", resultado);
    return 0;
}
