From 877763c15c021d6bf27404d1e61a1909d62eff59 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 1 Nov 2011 21:16:22 -0400 Subject: [PATCH] Starting to work through ch23 ex22 --- ex22.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ex22.h diff --git a/ex22.h b/ex22.h new file mode 100644 index 0000000..bc894b0 --- /dev/null +++ b/ex22.h @@ -0,0 +1,16 @@ +#ifndef _ex22_h +#define _ex22_h + +// makes THE_SIZE in ex22.c available to other .c files +extern int THE_SIZE; + +// gets and sets an internal static variable in ex22.c +int get_age(); +void set_age(int age); + +// updates a static variable that's inside update_ratio +double update_ratio(double ratio); + +void print_size(); + +#endif