Let's combine all of the examples above into one complex scenario: using libc's lfind function.
For more details about the function, read the man page. I urge you to read it before going on.
First, we'll define the proper prototypes:
>>> compar_proto = CFUNCTYPE(c_int, POINTER(c_int), PO...