XSLPuserfuncinfo
XSLPuserfuncinfo |
Purpose
Get or set user function declaration information
Synopsis
int XSLP_CC XSLPuserfuncinfo(XSLPprob prob, int iFunc, int InfoType, void *Info);
Arguments
Prob
|
The current SLP problem.
|
iFunc
|
Index of the user function
|
InfoType
|
Type of information to be set or retrieved
|
Info
|
Address of information to be set or retrieved
|
Example
The following example sets the external name of user function number 4 to "ANewFunc":
XSLPuserfuncinfo(Prob,4,XSLP_SETUFNAME,"ANewFunc");
Further information
This function allows the setting or retrieving of individual items for a user function. The following constants are provided for user function handling:
- XSLP_GETUFNAME
- Retrieve the external name of the user function
- XSLP_GETUFPARAM1
- Retrieve the first string parameter
- XSLP_GETUFPARAM2
- Retrieve the second string parameter
- XSLP_GETUFPARAM3
- Retrieve the third string parameter
- XSLP_GETUFARGTYPE
- Retrieve the argument types
- XSLP_GETUFEXETYPE
- Retrieve the linkage type
- XSLP_SETUFNAME
- Set the external name of the user function
- XSLP_SETUFPARAM1
- Set the first string parameter
- XSLP_SETUFPARAM2
- Set the second string parameter
- XSLP_SETUFPARAM3
- Set the third string parameter
- XSLP_SETUFARGTYPE
- Set the argument types
- XSLP_SETUFEXETYPE
- Set the linkage type
For information which sets or retrieves character string information, Info is the string to be used or a buffer large enough to hold the string to be retrieved.
For other information, Info is the address of an integer containing the information or to receive the information.
Related topics