lv_math: lv_math_num_to_str: return with buf

This commit is contained in:
Gabor Kiss-Vamosi
2018-03-07 13:10:20 +01:00
parent 19f98ce8ea
commit 13351c0091
2 changed files with 12 additions and 3 deletions

View File

@@ -31,7 +31,13 @@ extern "C" {
/**********************
* GLOBAL PROTOTYPES
**********************/
void lv_math_num_to_str(int32_t num, char * buf);
/**
* Convert a number to string
* @param num a number
* @param buf pointer to a `char` buffer. The result will be stored here (max 10 elements)
* @return same as `buf` (just for convenience)
*/
char * lv_math_num_to_str(int32_t num, char * buf);
/**********************
* MACROS