<Hans>
What specifically about the documentation for "QtmhRdStin" would 
lead you to believe that it would allocate the storage for you? Note 
that you're passing in the receiving field by reference, and so the 
data should get written to that variable. You're telling the API by 
the value in the second parameter that the receiving field is big 
enough for that amount of data, and the API has no reason to suspect 
you of lying to it.
</Hans>

So would this be considered dishonest programming. <BG>

Seriously though, is it safe to assume that it will allocate the amount I
say the length of my content is even though my variable maxes out at 32K?
Assuming QtmhRdStin is written in ILE C (based on the documentation) and
assuming ILE C doesn't have the same variable size limitations RPG has,
wouldn't this work?  I am not a C programmer so I am making some assumptions
here.  What else would it use the "Length of receiver variable" parm for
other than to allocate the appropriate amount of space?

There isn't a max length listed that I can specify for that parm. . .

Aaron Bartell

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.