mirror of
https://github.com/LIV2/libnix.git
synced 2025-12-06 00:23:08 +00:00
12 lines
216 B
C
12 lines
216 B
C
#include <exec/lists.h>
|
|
#include <clib/alib_protos.h>
|
|
|
|
VOID NewList(struct List *list)
|
|
{ LONG *p;
|
|
|
|
list->lh_TailPred=(struct Node *)list;
|
|
((LONG *)list)++;
|
|
*(LONG *)list=0;
|
|
p=(LONG *)list; *--p=(LONG)list;
|
|
}
|