I'm writing a bit of code using linked lists, and the statement...
(struct node *) NULL
keeps popping up all over the place.
I would like to alias that as something else (e.g.) NNULL, so I tried...
#define NNULL "(struct node *) NULL"
then wrote
if( head_node != NNULL )
...
but the compiler said I couldn't compare a pointer to struct with a pointer to char, which is understandable.
Do I need to write a macro to implement this... and if so, how do I do it.
Thanks.