getempty Routine--Get an Empty Value
This routine constructs the given empty value for this data type. 'Empty value' refers to the default value for a data type. (For example, the getempty routine for an integer creates the value 0.) NULLs are handled transparently, outside of this routine.
Place the address of this routine in the dtd_getempty_addr field of the IIADD_DT_DFN structure.
Inputs
The inputs for this function are:
scb
Pointer to a SCB.
empty_dv
Pointer to II_DATA_VALUE in which to place the empty data value:
db_datatype
The data type for the empty data value.
db_length
The length for the empty data value.
db_data
Pointer to location to place the db_data field for the empty data value. Note that this is often a pointer into a tuple.
Outputs
The outputs for this function are:
*(empty_dv-> db_data)
The data for the empty data value is entered.
Returns
II_STATUS
Last modified date: 04/03/2024