I’m new to C and I’m trying to use an Arraylist library. The “create Arraylist” function is giving me trouble however, because the signature makes almost no sense to me. What would be a valid function call with that signature?
This is the full signature:
Arraylist arraylist_create(const Boolean (*equals)(const Object object_1, const Object object_2))
Any help is greatly appreciated!!
To me the function wants another function, that will be used to compare the objects in the arraylist.
Something like this: