MCPcopy Index your code
hub / github.com/RT-Thread/rt-thread / rt_list_insert_before

Function rt_list_insert_before

include/rtservice.h:76–83  ·  view source on GitHub ↗

* @brief insert a node before a list * * @param n new node to be inserted * @param l list to insert it */

Source from the content-addressed store, hash-verified

74 * @param l list to insert it
75 */
76rt_inline void rt_list_insert_before(rt_list_t *l, rt_list_t *n)
77{
78 l->prev->next = n;
79 n->prev = l->prev;
80
81 l->prev = n;
82 n->next = l;
83}
84
85/**
86 * @brief remove node from list.

Calls

no outgoing calls

Tested by

no test coverage detected