* @brief get the list length * @param l the list to get. */
| 108 | * @param l the list to get. |
| 109 | */ |
| 110 | rt_inline unsigned int rt_list_len(const rt_list_t *l) |
| 111 | { |
| 112 | unsigned int len = 0; |
| 113 | const rt_list_t *p = l; |
| 114 | while (p->next != l) |
| 115 | { |
| 116 | p = p->next; |
| 117 | len ++; |
| 118 | } |
| 119 | |
| 120 | return len; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @brief get the struct for this entry |
no outgoing calls
no test coverage detected