Initializing help system before first use

XSLPgetuserfuncaddress

XSLPgetuserfuncaddress


Purpose
Retrieve the address of a user function
Synopsis
int XPRS_CC XSLPgetuserfuncaddress(XSLPprob Prob, int nSLPUF, void **Address);
Arguments
Prob 
The current SLP problem.
nSLPUF 
The number of the user function. This always counts from 1.
Address 
Pointer to hold the address of the user function.
Example
The following example retrieves the addresses of user functions 3 and 5 and checks if they are the same.
void *Func3, *Func5;
XSLPgetuserfuncaddress(Prob, 3, &Func3);
XSLPgetuserfuncaddress(Prob, 5, &Func5);
if (Func3 && (Func3 == Func5))
  printf("\nFunctions are the same");
Further information
The address returned is the address in memory of the function for functions of type DLL. It will be NULL for functions of other types.
Related topics