In building a module for Apache web server, I have encountered several instances where the declaration of a structure says that it only takes const char*
members as in the declaration of apr_table_t
and apr_array_header_t
, but examples I am finding in various modules such as mod_security, and even the new ap_parse_form_data
function indicate that a void *
data type is being inserted into these structures.
My questions are how is this possible and why will my Visual Studio compiler complain if I attempt to use the same method?
A good example of this is mod_security with a create_request function that stores a void *
in a request_rec
note.