Docs » Autodocs » exec.library » RemHead
RemHead -- remove the head node from a list
node = RemHead(list) D0 A0 struct Node *RemHead(struct List *);
Get a pointer to the head node and remove it from the list. Assembly programmers may prefer to use the REMHEAD macro from "exec/lists.i".
This function does not arbitrate for access to the list. The calling task must be the owner of the involved list.
list - a pointer to the target list header
node - the node removed or zero when empty list
AddHead(), AddTail(), Enqueue(), Insert(), Remove(), RemTail()
|