summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormvglasow <michael -at- vonglasow.com>2017-11-17 17:59:12 +0100
committermvglasow <michael -at- vonglasow.com>2017-11-17 17:59:12 +0100
commitdfbf46e7b371f9cd398b6ca9c884abbe8de57c81 (patch)
tree45dcf0697e12942a70b3d8131984abd776997786
parent958278325665bbd97574a7c2e75699d0b4ec04df (diff)
downloadnavit-dfbf46e7b371f9cd398b6ca9c884abbe8de57c81.tar.gz
Refactor:core:Refine documentation
Signed-off-by: mvglasow <michael -at- vonglasow.com>
-rw-r--r--navit/util.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/navit/util.c b/navit/util.c
index 2cceae460..79c92379e 100644
--- a/navit/util.c
+++ b/navit/util.c
@@ -709,7 +709,22 @@ void spawn_process_init()
return;
}
-/** Get printable compass direction from an angle. */
+/**
+ * @brief Get printable compass direction from an angle.
+ *
+ * This function supports three different modes:
+ *
+ * In mode 0, the angle in degrees is output as a string.
+ *
+ * In mode 1, the angle is output as a cardinal direction (N, SE etc.).
+ *
+ * In mode 2, the angle is output in analog clock notation (6 o'clock).
+ *
+ * @param buffer Buffer to hold the result string (up to 5 characters, including the terminating null
+ * character, may be required)
+ * @param angle The angle to convert
+ * @param mode The conversion mode, see description
+ */
void
get_compass_direction(char *buffer, int angle, int mode)
{