2011-11-02 01:16:22 +00:00
|
|
|
#ifndef _ex22_h
|
|
|
|
#define _ex22_h
|
|
|
|
|
|
|
|
// makes THE_SIZE in ex22.c available to other .c files
|
2011-11-02 01:56:34 +00:00
|
|
|
int THE_SIZE;
|
2011-11-02 01:16:22 +00:00
|
|
|
|
|
|
|
// gets and sets an internal static variable in ex22.c
|
|
|
|
int get_age();
|
2011-11-04 12:43:16 +00:00
|
|
|
int * get_age_pointer();
|
|
|
|
double * get_function_static(double);
|
2011-11-02 01:16:22 +00:00
|
|
|
void set_age(int age);
|
|
|
|
|
|
|
|
// updates a static variable that's inside update_ratio
|
|
|
|
double update_ratio(double ratio);
|
|
|
|
|
|
|
|
void print_size();
|
|
|
|
|
|
|
|
#endif
|