I have lists on different pages:
1. Title 1 2. Title 2 2.1. Title 2.1 (Новый список на новой странице). 2.2 Title 2.2 3. Title 3
When you switch the keyboard arrow between the elements of the list, a text description of the element appears next to the window.
Each element of the list is assigned a tag (array of tags, char*
), by which the description of the element of the list is searched. Tags are compared with the strcmp()
function.
How can I reduce the search time for a tag in an array, if I use one array and there will be many elements in it? After all, more time is being compared. The idea was to use different arrays of tags for different lists, that is, each list would need to be assigned an id and use several arrays. What else can be implemented? Language: Clean C.
\0
by mistake?) - VladD