KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Can you add more than one attribute to an identifier in C with gcc? Here is what I have now. I left out the include statements because they get scramble in the post. If there is a way to add two, what is the general syntax, and how can I do it both with the defintion, and with a prototype? Thank you. :-) main() { printf("In Main\n"); } __attribute__ ((constructor)) void beforeMain(void) { printf("Before Main\n"); }
Tags (comma-separated)
Save Edits
Cancel