On Tue, Nov 25, 2008 at 6:28 PM, Scott Klement
<rpg400-l@xxxxxxxxxxxxxxxx> wrote:

Also, you forgot the RETURN VALUE on your RPG prototype. Your C
prototype returns an int -- but the RPG side shows no return value.
Change it to have 10i 0 as a return value, otherwise those 4 bytes that
are returned could possibly be overwriting memory used for something
else -- and that might be hard to catch in testing, but could result in
the dreaded "unexpected results" in production.


Scott,

I can't believe I'm going to do this, but...

Are you sure about that? Is it just the fact that the prototype
doesn't declare the return value that could cause the problem? The
return value doesn't have to be used though right?

Thanks!
Charles

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.