J
Jorgen Grahn
Yes, it's highly confusing to use a C++ keyword in upper case, particularly
if you're stripping functionality out.
What I often to however is have a structure name in all-caps, and a
constructor for it using the same name, in lower case. So it looks rather
like a C++ call. Of course you initialise all the fields in the function.
Yes, it's IME rather common to have a constructor-like convention in C
code, even though you can't get that nice "if you see a Foo object,
you can be sure it has been properly constructed" feeling.
I don't understand your naming convention, though -- there is no
conflict between function names and struct tags, so why make them
different[1]?
/Jorgen
[1] Not that I make them the same -- I tend to use struct Foo and
foo_create() or foo_init() or something.)