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++.