Specifications for a Range Setting Function

The range setting function must be an integer function and return TRUE if the range structure was successfully initialized and return FALSE if an error occurred.

A range setting function must accept three parameters: the first parameter is a pointer to the minimum value, the second parameter is a pointer to the maximum value, and the third parameter is a pointer to a data field structure.

The definition for a range setting function is as follows:

int rgset_func(minp, maxp, dfldp)
 
PTR *minp;
/* Pointer to minimum value
*/
PTR *maxp;
/* Pointer to maximum value
*/
DFIELDPTR dfldp;
/* Pointer to field structure
*/

The steps you must take in this function are as follows:


Home Contents Previous Next