[Coco] Re: creatdsk.c source

tim lindner tlindner at ix.netcom.com
Sat Dec 24 13:01:47 EST 2005

Mannequin* <mannslists at invigorated.org> wrote:

> In Microware C, you didn't have to include string.h when you used the
> string manipulation functions? Wouldn't that have added to the
> executables size with those (and other) functions compiled in and not
> being used?
> Anyone want to explain this for me?

Header files don't add to the executable size becuse they (usually)
don't include any executable code. They usually only include
declarations. Sometime they can include static data, but it is usually
tiny. string.h doesn't contain any static data.

Only calling functions defined in a header file will cause the linker to
add the code that implements the function.

tim lindner
tlindner at ix.netcom.com                                            Bright

More information about the Coco mailing list