与其他列表实现一样,需要一个列表头来充当列表的锚点。
Like any list implementation, you need a list head that serves as the anchor for the list.
如果我们随后在列表头部添加了一个新值,则称为构造一个新列表。
If we then add a new value to the head of the list, it's known as constructing (or "cons-ing") a new list. The new list will share all the cells from the original.
也可以通过使用LIST_HEAD_INIT宏手动创建一个列表头(例如,您的列表头位于另一个结构中)。
You can also create a list head manually (for example, if your list head is in another structure) through the use of the LIST_HEAD_INIT macro.
I start at the beginning of each list, and I say is one less than three?
从每个列表的头开始,那个么1是不是比3小呢?当然?
应用推荐