1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // include guards: prevents the header from being included twice in a single .c file
#ifndef __C_HEADER_1_H__
#define __C_HEADER_1_H__
// do not worry about typedef right now, we will cover it later in the semester
// this is just something you might see in a header
typedef int Number;
// this static function will cause errors if included
static int return_int(int i) {
return i;
}
#endif /* endif for __C_HEADER_1_H__ */
|
© Copyright 2022 Alexander J. Quinn This content is protected and may not be shared, uploaded, or distributed.