I have an enum declared as:
typedef enum
{
NORMAL = 0,
EXTENDED
} CyclicPrefixType_t;
CyclicPrefixType_t cpType;
I need a function that takes this as an argument:
fun(CyclicPrefixType_t cpType);
The function declaration is:
void fun(CyclicPrefixType_t cpType);
How can I fix it? I don't think it is correct.
_tat the end these are usually reserved, in particular by POSIX. But as the others say, your prototype is ok.