Skip to content
UPEEC

Header Files

`.h` files share declarations (prototypes, types, macros, `extern` variables) between source files.

Beginner
Comments 0

Put declarations in headers, definitions in .c files. A header should include what it needs and nothing more.

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.