udfFirstCall()
Determine whether this the first time a user-defined function is called.
Syntax
firstCall = udfFirstCall( udfHd ) ;
Type
AcuSolve User-Defined Function Basic
Parameters
- udfHd
- The opaque handle (pointer) which was passed to the user function.
Return Value
- firstCall (integer)
- The return value is a flag indicating whether or not this is the first time this user function
is called:
- 0
- No, this is not the first time.
- 1
- Yes, this is the first time.
Description
Integer firstCall ;
...
firstCall = udfFirstCall( udfHd ) ;
if ( firstCall == 1 ) {
/* possible initialization */
} else {
/* the rest of the time */
}
Errors
This routine expects a valid udfHd.