SyntaxFix
Write A Post
Hire A Developer
Questions
An initialization function to a struct is a good way to grant it default values:
Mystruct s; Mystruct_init(&s);
Or even shorter:
Mystruct s = Mystruct_init(); // this time init returns a struct