|
Buck Calabro wrote: > > > $CtoH PR extproc('cvtch') > > P$TgtHex 64a options(*varsize) > > P$SrcChar 128a const options(*varsize) > > P$SrcBytes 10i 0 value > > > ... > > The prototype does not match the documentation. Try pointers to the source > and target strings rather than the above. The RPG400-L archives have > examples of working code (link at the bottom of every message.) Search for > 'cvtch'. The FAQ (http://faq.midrange.com) has a description of how to > translate the C prototypes into RPG. > Buck, when a function wants a pointer by value, you can also pass "something" by reference (or CONST, aka read-only-reference), since passing something by reference amounts to passing a pointer-to-something by value.
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.