I have been trying to figure out how to implement a recursive function with just 3 parameters: Tower(Disk, from, to). I did a lot of research on google. All the results came up with the 4 parameters recursive function, (disk, a, b, c). Any help will be greatly appreciated.
EDIT:
typedef void (*towersActionFn)(unsigned short fromPost, unsigned short endPost);
void solveTowers(unsigned short nDisks, unsigned short start, unsigned short end, towersActionFn f);
the towersActionFn is only used to display the solution.