I guess the best solution is to have help function receiving a pointer to void. User defines his own struct in which he passes data to function. Argument library stores this pointer and passes it to help function. This way user gains a lot of flexibility without introducing any complexity to library.
I guess the best solution is to have help function receiving a pointer to void. User defines his own struct in which he passes data to function. Argument library stores this pointer and passes it to help function. This way user gains a lot of flexibility without introducing any complexity to library.