Skip to content

cf_load_function

Category: utility
GitHub: cute_symbol.h


Loads a function out of a shared library.

void* cf_load_function(CF_SharedLibrary* library, const char* function_name);
Parameters Description
library A library of functions from load_shared_library.
function_name The name of the function.

Remarks

The function pointer is not valid after calling unload_shared_library. After obtaining the function pointer with load_function you must typecast it yourself. Returns NULL in the case of errors.

cf_load_shared_library
cf_unload_shared_library