Decrement a DBMONEY value by one ten-thousandth of a dollar.
RETCODE dbmnydec(dbproc, mnyptr) DBPROCESS *dbproc; DBMONEY *mnyptr;
A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and the server.
This parameter may be NULL. The DBPROCESS is used as a parameter to an application’s error handler. It also contains information on what language to print error messages in. If a DBPROCESS is not supplied, the default national language is used.
A pointer to the DBMONEY value to decrement.
SUCCEED or FAIL.
dbmnydec returns FAIL in case of overflow or if mnyptr is NULL.
dbmnydec decrements a DBMONEY value by one ten-thousandth of a dollar.
An attempt to decrement the maximum negative DBMONEY value will result in overflow. In case of overflow, dbmnydec returns FAIL. In this case, the contents of *mnyptr are undefined.
The range of legal DBMONEY values is between +/-$922,337,203,685,477.5808. DBMONEY values have a precision of one ten-thousandth of a dollar.