diff options
author | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-07-05 13:05:19 +0200 |
---|---|---|
committer | Gabor Kiss-Vamosi <kisvegabor@gmail.com> | 2023-07-05 13:05:19 +0200 |
commit | f753265a799bdd910881238cb36f8d731f6d8727 (patch) | |
tree | edbdff1ea253720fb4e0a6ced67ea521647f779c /src/stdlib/clib/lv_sprintf_clib.c | |
parent | 08870996d15e4bf4e8f3ca976991d35a76c7054e (diff) | |
download | lvgl-f753265a799bdd910881238cb36f8d731f6d8727.tar.gz lvgl-f753265a799bdd910881238cb36f8d731f6d8727.zip |
arch(draw): add parallel rendering architecture
BREAKING CHANGE
This is a huge update which introduces parallel rendering. lv_conf.h needs to be updated too.
Diffstat (limited to 'src/stdlib/clib/lv_sprintf_clib.c')
-rw-r--r-- | src/stdlib/clib/lv_sprintf_clib.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/stdlib/clib/lv_sprintf_clib.c b/src/stdlib/clib/lv_sprintf_clib.c new file mode 100644 index 000000000..1487f1648 --- /dev/null +++ b/src/stdlib/clib/lv_sprintf_clib.c @@ -0,0 +1,59 @@ + + +/** + * @file lv_templ.c + * + */ + +/********************* + * INCLUDES + *********************/ +#include "../../lv_conf_internal.h" +#if LV_USE_STDLIB_MALLOC == LV_STDLIB_CLIB +#include <stdio.h> +#include <stdarg.h> +#include "../lv_sprintf.h" + +/********************* + * DEFINES + *********************/ + +/********************** + * TYPEDEFS + **********************/ + +/********************** + * STATIC PROTOTYPES + **********************/ + +/********************** + * STATIC VARIABLES + **********************/ + +/********************** + * MACROS + **********************/ + +/********************** + * GLOBAL FUNCTIONS + **********************/ + +int lv_snprintf(char * buffer, size_t count, const char * format, ...) +{ + va_list va; + va_start(va, format); + const int ret = vsnprintf(buffer, count, format, va); + va_end(va); + return ret; +} + +int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va) +{ + return vsnprintf(buffer, count, format, va); +} + +/********************** + * STATIC FUNCTIONS + **********************/ + +#endif |