|
Authored by: PolR on Tuesday, June 04 2013 @ 01:14 PM EDT |
So, whatever an API is, it does not have anything to do with
"header
files".
This is incorrect. The detailed
comment below explains it better.
I think talking about API and
header files as the same thing makes
communications with the lawyers harder.
Header files is only one way to
communicate APIs and it is bad to confuse these
when the language at question do
not use header files.
Headers is
how APIs are usually communicated to the program that uses them in C and C++.
Java uses a different mechanism. But the underlying concept is the same. A
program cannot use a library without the knowledge of its APIs. This knowledge
must be communicated through some mechanism which varies from language to
language.
[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Tuesday, June 04 2013 @ 03:16 PM EDT |
C in and of itself does not need any "header" files: the plain
text of the "header" file is inserted as though it had been
written in the source file, which means the relevant parts of
the header files could be written directly into the source
file and no header files used at all; what they do is make it
easy to write the function templates by storing them in a
separate file which can then be included where needed - write
once and then use when needed. [ Reply to This | Parent | # ]
|
|
|
|
|