Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header files in C #5

Open
mohammadhamad opened this issue Mar 25, 2021 · 1 comment
Open

Header files in C #5

mohammadhamad opened this issue Mar 25, 2021 · 1 comment
Labels
question Further information is requested

Comments

@mohammadhamad
Copy link

It was mentioned that "Functions that appear in the header file are public, while functions that only appear in the .c files are private.".
I think this is violating, in somehow, the idea behind the header file. The header file should include the signature of ALL functions. Do you have this recommendation written somewhere?

@mohammadhamad mohammadhamad added the question Further information is requested label Mar 27, 2021
@emareg
Copy link
Member

emareg commented Jun 7, 2021

I cannot remember exactly where I got this from but here is an explanation confirming this style:
https://stackoverflow.com/questions/50593094/what-declarations-should-be-placed-in-a-c-header-file/50595509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants