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

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

#include <stddef.h>
#include <stdbool.h>

Go to the source code of this file.

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.