diff options
author | Levi Bostian <levi.bostian@gmail.com> | 2013-11-23 22:40:52 -0600 |
---|---|---|
committer | Levi Bostian <levi.bostian@gmail.com> | 2013-11-23 22:40:52 -0600 |
commit | 38de481179484d597d44fa934f87a5f21ebfaa6c (patch) | |
tree | fdb4ca1d4b34e49bc2410c6edad5aedb121d762d | |
parent | 981cc871a4d4e5473e580dee8574a119ac8a9723 (diff) |
Add variety to function prototypes.
-rw-r--r-- | c.html.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c.html.markdown b/c.html.markdown index ee35cdd2..b4a874d3 100644 --- a/c.html.markdown +++ b/c.html.markdown @@ -38,8 +38,8 @@ enum days {SUN = 1, MON, TUE, WED, THU, FRI, SAT}; // Declare function signatures in advance in a .h file, or at the top of // your .c file. -void function_1(); -void function_2(); +void function_1(char s[]); +int function_2(void); // Must declare a 'function prototype' before main() when functions occur after // your main() function. |