I'm integrating a C library into my C project and have run across
compile issues that have left me thoroughly confused.
First we have this in a header file (keep in mind I've changed the
variable names):
typedef enum
{
ITEM1,
ITEM2,
ITEM3,
ITEM4,
ITEM5
} MyError;
Then in a source file:
typedef MyError( *send_pdu ) ( unsigned int8 adr,
const unsigned int8 * pdu, unsigned int16 len );
I'm really confused as to the "typedef enum". I know what typedef does,
and I know what enum does. What is the second statement doing?