Content deleted Content added
Ptaherkhani (talk | contribs) →An information-hiding mechanism: Added a note on the use of extern keyword when defining a function in C language. |
Ptaherkhani (talk | contribs) |
||
Line 139:
// extern keywords here are redundant, but they won't hurt.
// extern keyword defines functions to have external linkage (i.e. can be called outside current file)
// which is the default behavior even without the keyword extern
</source>
Note on extern keyword from K.N. King<ref>King, Kim N. C programming: a modern approach. WW Norton & Company, 2008.</ref>.
Clients call the API functions to allocate, operate on, and deallocate objects of an [[opaque data type]]. The contents of this type are known and accessible only to the implementation of the API functions; clients cannot directly access its contents. The source code for these functions defines the actual contents of the structure:
<source lang="csharp">
|