I am trying to pass member function pointer to the c-style function (as it\'s lib in C)
The pointer it wants is defined as:
void (*)(int, const char*
Not directly, no. A C++ member function needs an implicit this pointer, which of course C has no idea about and won't pass.
this
The usual way around this is to introduce a "trampoline" as a class method, but perhaps there are prettier ways in more modern C++ variants.