1
2 /**
3 * @file lv_templ.c
4 *
5 */
6
7 /*********************
8 * INCLUDES
9 *********************/
10 #include "../../lv_conf_internal.h"
11 #if LV_USE_STDLIB_SPRINTF == LV_STDLIB_CLIB
12 #include <stdio.h>
13 #include <stdarg.h>
14 #include "../lv_sprintf.h"
15
16 /*********************
17 * DEFINES
18 *********************/
19
20 /**********************
21 * TYPEDEFS
22 **********************/
23
24 /**********************
25 * STATIC PROTOTYPES
26 **********************/
27
28 /**********************
29 * STATIC VARIABLES
30 **********************/
31
32 /**********************
33 * MACROS
34 **********************/
35
36 /**********************
37 * GLOBAL FUNCTIONS
38 **********************/
39
lv_snprintf(char * buffer,size_t count,const char * format,...)40 int lv_snprintf(char * buffer, size_t count, const char * format, ...)
41 {
42 va_list va;
43 va_start(va, format);
44 const int ret = vsnprintf(buffer, count, format, va);
45 va_end(va);
46 return ret;
47 }
48
lv_vsnprintf(char * buffer,size_t count,const char * format,va_list va)49 int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va)
50 {
51 return vsnprintf(buffer, count, format, va);
52 }
53
54 /**********************
55 * STATIC FUNCTIONS
56 **********************/
57
58 #endif
59