Hi, there i didn't even know is that how its called but can you help me and tell me what is that LLIST from the structure into the type function and why its used in this case:
typedef struct node {
int data;
struct node *next; /* pointer to next element in list */
} LLIST;
LLIST *list_add(LLIST **p, int i)
{
if (p == NULL) /
return NULL;
LLIST *n = malloc(sizeof(LLIST));
if (n == NULL)
return NULL;
n->next = *p; /
*p = n;
n->data = i;
return *p;
}
int main(void)
{
LLIST *n = NULL;
list_add(&n, 0);
return 0;
}
Thanks in advanced :)