So say your constructing an array of list of structs from a text file. Each struct has a pointer to the next structure, like a linked list. I'm having a problem trying to print my array out because in the 1st list of structs the last item in the list points to nothing because it is the last item. When I go to print the list I receive an error because obviously that list thing in the list points to nothing. Is there a way to check if a pointer points to nothing instead of pointing to NULL?
NULL means nothing, so I guess I don't understand your question. Just make sure to set the initial value of that pointer to NULL when you construct it.