From 48923aec615908412d00034a4bd69a2200921794 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 18 Jun 2018 20:27:41 +1200 Subject: Refactor human-friendly unit algorithms --- unit_label.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 unit_label.h (limited to 'unit_label.h') diff --git a/unit_label.h b/unit_label.h new file mode 100644 index 0000000..7fe1f2b --- /dev/null +++ b/unit_label.h @@ -0,0 +1,6 @@ +struct unit_label { + double lower_bound; + char *label; +}; + +double make_unit_whatsit(const struct unit_label l[], char **unit, double value); -- cgit v1.1