deccopy()

Copies one decimal value to another.

Syntax

void deccopy(dec_t *n1, struct decimal *n2);
  1. n1 is a pointer to the value held in the source decimal structure.
  2. n2 is a pointer to the target decimal structure.