Home
last modified time | relevance | path

Searched refs:new_map (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/tabview/
Dlv_tabview.c81 const char ** new_map; in lv_tabview_add_tab() local
85 new_map = lv_mem_alloc((tab_id + 1) * sizeof(const char *)); in lv_tabview_add_tab()
86 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1)); in lv_tabview_add_tab()
87 new_map[tab_id - 1] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
88 strcpy((char *)new_map[tab_id - 1], name); in lv_tabview_add_tab()
89 new_map[tab_id] = ""; in lv_tabview_add_tab()
93 new_map = lv_mem_alloc((tab_id * 2) * sizeof(const char *)); in lv_tabview_add_tab()
94 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1) * 2); in lv_tabview_add_tab()
96 new_map[0] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
97 strcpy((char *)new_map[0], name); in lv_tabview_add_tab()
[all …]