DEV Community

Discussion on: The different files of C

Collapse
konstantinklima profile image
Konstantin Klima

These are called header only libraries.
The idea is portability primarily - you don't drag along C files which you have to compile and keep track of (by using make and linking them separately). The compiler does copy all the code into the .o file made from your .c that included the .h and that is the down side.