i want to append a node in the linked list

when i append this as

```
struct node*p;
p=NULL;
append(p,1);
```

where function is declared as

```
append(struct node*q int num)
```

i append three node,

after this i call the function for counting the node,

i get the total no node is 0, while i have appended the node.

what is the error...

please help me...