int wb_get_function_address (string fname [, int idlib])
Returns the address of a library function. fname is the function name and idlib identifies a library already loaded. The idlib identifier must have been obtained with a call to wb_load_library(). If idlib is not set or is set to NULL, the last library sent to the function will be used.
The function prepends and appends some special characters to the function name until it finds the function name, then it returns the function address or NULL if the function was not found. These special characters are the most common ones encountered in various types of libraries. For example, if fname is set to "MyFunction", wb_get_function_address() looks for the following function names, in order:
The last two expansion options include a '@' character followed by the number of parameters times 4, which is a standard way to store function names inside DLLs. The loop starts from zero ("@0") and ends when it reaches 20 parameters ("@80").
NOTE: Function names, including the expansion characters, are limited to 255 characters.