I'm currently working on a project from intro C class, we are basically creating a hash table implementation in C but my current question pertains to how a certain function was written in code skeleton provided by my professor. Here is the header definition of the create method:
Table* create(long (*hash)(void* key), bool (*equals)(void* key1, void* key2), void (*print)(void* key1, void* key2)); This appears to be pointers to functions as parameters? I'm not sure how to even call this, or what happens when it is called. I'm not even sure where these methods (hash, equals, and print) are coming from. Any help would be greatly appreciated. Thanks