The deccopy() function
The deccopy() function copies a value from one decimal structure to another.
Syntax
void deccopy(source, target)
dec_t *source;
dec_t *target;
- source
- A pointer to the decimal structure that contains the value to copy.
- target
- A pointer to a decimal structure to which to copy the value.
Return values
The deccopy() function does not return a status value. To determine the success of the copy operation, look at the contents of the decimal structure to which the target argument points.