Hi there,
Please try to be more specific about your queries... Looks like this is a doubly linked list... a queue?...
Like Sci@phy said, if h is a pointer to first node, you should use
if(h == NULL)
or if it is an argument you have passed to this function of type NODE**, then its correct...
Further more, do a type cast while memory allocating, like
t=(NODE *)malloc(sizeof(NODE));
How many nodes are you trying to add at one go?... And are you trying to add the node in a reverse manner?