On January 10, 2003 12:48 am, John K. Hohm wrote:
- CLSID const *clsid; /* NULL for end of list */
[...]
- { NULL } /* list terminator */
Why not terminate the list with a NULL pointer to the struct instead, it's simpler and more idiomatic...
Quoting "Dimitrie O. Paun" dpaun@rogers.com:
On January 10, 2003 12:48 am, John K. Hohm wrote:
- CLSID const *clsid; /* NULL for end of list */
[...]
- { NULL } /* list terminator */
Why not terminate the list with a NULL pointer to the struct instead, it's simpler and more idiomatic...
It is because I am using a list of structures, not a list of pointers to structures. How would you create a static list of pointers to structures, without naming each one?