Starting to work through ch23 ex22
This commit is contained in:
parent
c2615babf7
commit
877763c15c
16
ex22.h
Normal file
16
ex22.h
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user