|
![](/i/fill.gif) |
On Sat, 29 Aug 2009 14:22:40 -0400, Warp wrote:
> Jim Henderson <nos### [at] nospam com> wrote:
>> Yes, it would be a valid .c file because a library doesn't need to have
>> a main() function.
>
> Have you checked that the C standard agrees with you?
I researched a little bit, yes. By definition, a library is not a
program, just a collection of functions, and as such, a main function is
not required (in fact, it could cause problems to have a library with a
main() function).
Jim
Post a reply to this message
|
![](/i/fill.gif) |