C – expected declaration specifiers or ‘…’ before function arguments

Hi my header has defined the following codes:

typedef uint8_t EnrollT(uint16_t test1, uint16_t test2);
typedef void ChangeT(uint64_t post1, uint8_t post2);

struct ClusterT * ClientAlloc(EnrollT *, ChangeT *);

I have implemented these two functions and pass those to ClientAlloc() in my c file as shown in the following:

ClientAlloc(enroll, change);

However, when I compile the source, the errors pops up.

expected declaration specifiers or ‘...’ before ‘enroll’
expected declaration specifiers or ‘...’ before ‘change’

Is there anything I may miss here?

Thanks


Source: c#

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.