|
Could it belong from null termination ? Sincerely Domenico Finucci Fiditalia , Milano, 02- 4301-2494 -----Messaggio originale----- Da: Vernon Hamberg [mailto:vhamberg@attbi.com] Inviato: mercoledì 3 aprile 2002 17.28 A: midrange-l@midrange.com Oggetto: Re: CALLPRC with RTNVAL That might be because of the 16-byte pointer thing. And everything in CL is by reference, i.e., by pointer. But that doesn't seem to explain why a CL program can't handle a character array from C. I mean, when you've declared char rtnval[4] and use return(rtnval) it's returning the pointer to the start of that array, which is actually a pointer, after all. And when the article says to use a struct (which DOES work), you don't declare a pointer to a struct, you declare a struct. So there must be some special understanding between iSeries CL and C/C++ programs.
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.