Initializing help system before first use

getnextproc

Purpose
Get the next overloaded version of a procedure or function.
Synopsis
XPRMproc getnextproc(XPRMproc proc);
Argument
proc 
Reference to a procedure or function
Return value
A procedure or function reference or NULL if no overloading subroutine is defined.
Example
The following code extract shows how to find the function mosfct(i:integer,r:real):boolean.
int find_mosfct(XPRMcontext ctx)
{
 XPRMalltypes fct;
 const char *partyp;
 int nbpar,type;
	
 if(XPRM_STR(mm->findident(ctx, "mosfct", &fct))==XPRM_STR_PROC)
  do {
   mm->getprocinfo(fct.proc, &partyp, &nbpar, &type);
   if((XPRM_TYP(type)==XPRM_TYP_BOOL) && (nbpar==2) && !strcmp(partyp,"ir"))
    return 1;
   fct.proc=mm->getnextproc(fct.proc);
  } while(fct.proc!=NULL);
 return 0;
}
Further information
This function returns the following overloading defined for the given subroutine. A subroutine may be defined several times in a model with different sets of parameters. This function gives access to all the defined overloaded versions of a subroutine. Note that this function does not give access to any subroutines provided by modules.
Related topics

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.