github.com/castedo/isomon |
isomon::data::add_currency — Add a currency to the data tables.
// In header: </home/castedo/src/isomon/currency_data.h> bool add_currency(int16_t isonum, const char * code);
Not thread-safe. Typically this would only be called during program initialization. ISO numeric and alphabetic codes can not be re-used if already in use. Number of minor units per major unit default to zero. Use set_num_minors function to change this value for a newly added currency.
Parameters: |
| ||||
Returns: | False iff any inputs are invalid or ISOMON_ISONUM_COUNT currencies have already filled up the tables. |