summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 11:39:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-01 19:52:12 -0700
commit18b8247cb357a9a716846854e451e306b752e542 (patch)
treef4df344653f038554747f90ad34587dc331e0d5a /dive.h
parent43601f654675c8734c9ca5850cc41dac16d1989a (diff)
downloadsubsurface-18b8247cb357a9a716846854e451e306b752e542.tar.gz
Add new helper function to get temperature and unit
Designed along the lines of get_depth_units - except we don't define a specific number of digits to show. Use this in the one spot we need it right now in profile.c Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 58b6611f8..97654dc52 100644
--- a/dive.h
+++ b/dive.h
@@ -87,6 +87,7 @@ typedef struct {
} cylinder_t;
extern double get_depth_units(unsigned int mm, int *frac, const char **units);
+extern double get_temp_units(unsigned int mm, const char **units);
static inline double mm_to_feet(int mm)
{