Perhaps I don't fully understand extern
. With the XC8 C compiler, it seems like I can get away without using it.
In the file keypad.c
I have a function signed char keypadGetPressedKeyLabel(void)
. In the header file keypad.h
I have:
signed char keypadGetPressedKeyLabel(void);
I thought I would have to use extern
, ie:
extern signed char keypadGetPressedKeyLabel(void);
The project builds without extern
. And it works. Might this due to the fact that keypad.c
and keypad.h
are all part of the project? I'm using MPLABX.
keypad.h
? \$\endgroup\$