prints message to indicate that l is the null liststructure

if (l == NULL)

printf("\n The list is null \n");