MCPcopy Create free account
hub / github.com/Entware/Entware / item_n

Function item_n

scripts/config/lxdialog/util.c:674–685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674int item_n(void)
675{
676 int n = 0;
677 struct dialog_list *p;
678
679 for (p = item_head; p; p = p->next) {
680 if (p == item_cur)
681 return n;
682 n++;
683 }
684 return 0;
685}
686
687const char *item_str(void)
688{

Callers 2

dialog_checklistFunction · 0.85
dialog_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected