MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_slist_len

Function rt_slist_len

include/rtservice.h:215–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215rt_inline unsigned int rt_slist_len(const rt_slist_t *l)
216{
217 unsigned int len = 0;
218 const rt_slist_t *list = l->next;
219 while (list != RT_NULL)
220 {
221 list = list->next;
222 len ++;
223 }
224
225 return len;
226}
227
228rt_inline rt_slist_t *rt_slist_pop(rt_slist_t *l)
229{

Callers 3

at_client_para_initFunction · 0.85
netdev_getnetdevFunction · 0.85
rbb_testFunction · 0.85

Calls

no outgoing calls

Tested by 1

rbb_testFunction · 0.68