Thread
:
default values for C struct fields
View Single Post
Salem
Ambitious contributor
15Jan2008,15:23
You write it as C++, and supply a default constructor function.
Or if you're stuck with C, then your approach is one of several roughly equal approaches.
None of which would be as elegant as using C++.