You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
380 B
19 lines
380 B
13 years ago
|
#ifndef _ex22_h
|
||
|
#define _ex22_h
|
||
|
|
||
|
// makes THE_SIZE in ex22.c available to other .c files
|
||
13 years ago
|
int THE_SIZE;
|
||
13 years ago
|
|
||
|
// gets and sets an internal static variable in ex22.c
|
||
|
int get_age();
|
||
13 years ago
|
int * get_age_pointer();
|
||
|
double * get_function_static(double);
|
||
13 years ago
|
void set_age(int age);
|
||
|
|
||
|
// updates a static variable that's inside update_ratio
|
||
|
double update_ratio(double ratio);
|
||
|
|
||
|
void print_size();
|
||
|
|
||
|
#endif
|