Re:Obvious Things C Should Do
by lzsiga on Sunday January 12, 2025 @01:28AM
(#42671698)
It is perfectly valid to use more than one header files: some of them can be public (meant to be seen by users of your library), others can be private or internal (only used by your own sources).
[ Parent
| on HN ]
Re:Obvious Things C Should Do
by chikere232 on Sunday January 12, 2025 @03:43AM
(#42672150)
Also, usually it's pretty rare to have things internal to one C file that need explicit prototypes. It's easier to just put things in the right order so the funtion definition etc is before its use.