typedefstruct{
UCHAR (*const GetFunc)(void);
}UCHAR_CPMTS;
typedef struct{
UINT (*const GetFunc)(void);
}UINT_CPMTS;
typedefstruct{
void(*constSetFunc)(UCHAR);
}UCHAR_CPMTS_INIT;
typedefstruct{
void(*constSetFunc)(UINT);
}UINT_CPMTS_INIT;
using this pointers i can handle only functions having uchar,uint return types and as arguements.But i need to handle SCHAR, as well as functions with more no of arguements.How to handle them in generic way,Instead of creating one structure for every fuction type.Please help me.I need the solution very urgent.
Thanks,
Anuradha.
The parameter for each function then might be a pointer to a common structure type, which could take into account the differing data types required by each function.