User Tools

Site Tools


coding_standards

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
coding_standards [2019/10/10 08:33]
hutch
coding_standards [2019/11/21 11:45] (current)
hutch
Line 66: Line 66:
   * function definitions,​   * function definitions,​
   * variable definitions.   * variable definitions.
- 
-Examples of function prototypes can be found in the examples of circularBuffer.h shown below. A function prototype "​advertises"​ the name of the function, its return type, and the types of the arguments that it accepts. It does not contain any of the code for the function. A typedef declaration is also shown below. It "​declares"​ types but does not result in any variable definitions. Function definitions are found in circularBuffer.c where the "​code"​ for the entire function can be found for each of the function prototypes in the circularBuffer.h file. 
  
 A good but rather detailed discussion of this topic can be found at: [[http://​www.cprogramming.com/​declare_vs_define.html|declaration versus definition]]. A good but rather detailed discussion of this topic can be found at: [[http://​www.cprogramming.com/​declare_vs_define.html|declaration versus definition]].
  
 ---- ----
coding_standards.txt ยท Last modified: 2019/11/21 11:45 by hutch