I can refer C struct with its name. Anyway it looks it doesn't have run-time identity. I mean, there's no symbol for the struct. It's been referred from header files. So I think I can put struct of same name with different fields over multiple .c files without name duplication.
Am I right? Or C struct has it's symbol, so should I avoid duplicated names?
PS. I'm sorry for unclear terms and question, but currently, I can express this only like this. I will update my question as I get more ideas.
If you're asking if you can reuse a structure name to mean different structures in different translation units, the answer is yes. I wouldn't say it's a good idea, though.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With