I needed to make some wrappers for some functions in my program as my argument structure was different to that of the lib/functions that I had created. It has been suggested that the best way to do this is to use inline functions in header files, now this works fine for me:
Code:
/* In main.h */
static inline void iReAllocList (struct functionParam argv)
{
	reAllocList(argv.lp, argv.allocSize, argv.allocMode);
}
However, I am not sure if this is valid C99 code (it works on GCC which is my main target compiler, but I would like to stick to valid code if possible) and if it is allowed in a header file. I also not sure if this is the best way to make a function wrapper.
Can anyone give me any advice.