User Tools

Site Tools


writing_helper_functions

Differences

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

Link to this comparison view

writing_helper_functions [2016/09/19 08:29]
hutch created
writing_helper_functions [2016/09/19 08:30] (current)
hutch
Line 7: Line 7:
 #include <​stdint.h>​ #include <​stdint.h>​
 #include <​math.h> ​ // Need sqrt(). #include <​math.h> ​ // Need sqrt().
- 
-// Function prototype for the helper function. Tells 
-// the compiler that this function will be defined 
-// later. 
  
 // Note that the hypotenuse function is not declared // Note that the hypotenuse function is not declared
 // in a .h file anywhere. The intent is that hypotenuse // in a .h file anywhere. The intent is that hypotenuse
 // function will only be used inside main for this example. // function will only be used inside main for this example.
 +
 +// Function prototype for the helper function. Tells
 +// the compiler that this function will be defined
 +// later.
 int32_t hypotenuse(int32_t a, int32_t b); int32_t hypotenuse(int32_t a, int32_t b);
  
writing_helper_functions.txt ยท Last modified: 2016/09/19 08:30 by hutch