Loading...
Searching...
No Matches
distance.c File Reference

Pure distance conversions and formatting, no SDK behind them. More...

#include "units/distance.h"
#include <stdio.h>

Functions

const char * distance_unit (bool miles)
 Unit label for the current distance mode ("MI" or "KM").
void distance_format_value (char *buffer, size_t size, int meters, bool miles)
 Format meters as "N.N" (rounded to tenth), no unit suffix.
void distance_format (char *buffer, size_t size, int meters, bool miles)
 Format meters as "N.N MI" or "N.N KM" (rounded to tenth).

Detailed Description

Pure distance conversions and formatting, no SDK behind them.