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

Function rt_slist_pop

include/rtservice.h:228–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228rt_inline rt_slist_t *rt_slist_pop(rt_slist_t *l)
229{
230 struct rt_slist_node *node = l;
231
232 /* remove node */
233 node = node->next;
234 if (node != (rt_slist_t *)0)
235 {
236 ((struct rt_slist_node *)l)->next = node->next;
237 node->next = RT_NULL;
238 }
239
240 return node;
241}
242
243rt_inline rt_slist_t *rt_slist_remove(rt_slist_t *l, rt_slist_t *n)
244{

Callers 1

rt_interrupt_context_popFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected