|
Andy Holmer wrote: > > > > One of the functions is passing tax_amt and tax_rate as > > > > double *pTransTotalTax, > > double *pTransCombRate, > > This c function is actually asking for a pointer to a double. Note the > asterisk just before the variable name. "double *" can be read in two ways: 1. pointer to a double 2. double passed by reference 3. array of double (oops, three ways) The first two mean the same thing at the machine level, but they don't mean the same thing to RPG, since RPG doesn't have the concept of "pointer to a double". So I think the original 8F (with no VALUE keyword) is a more correct RPG translation than * (with the VALUE keyword).
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.