In order to follow a prepared design document I want to create virtual function in C. Is there any best practice to do that? As @imreal suggested we can use function pointers to convert C structures works similar to C++ classes but how can we make sure that virtual base class functions are overrides derived class functions.
In my case I need this feature to follow the documentation but I think it can be also useful when we are converting a C++ code to C. This is required when combining a C++ code with a C code.