"Richard Burmeister" <[EMAIL PROTECTED]> writes: > And if you pass in something of the wrong size to a function, how will > the function know how to interpret the bits that are on the stack? > Conclusion: check function prototypes in the Palm OS Reference and > always use the correct data types.
This is not strictly true. If you have a UInt16 and the function prototype calls for a UInt8, the C compiler will coerce the UInt16 to a UInt8, so the stack will contain the Right Data. Assuming that the compiler has seen the prototype. Where this can bite you is if the function uses varargs (i.e., printf et al). Then, you have to ensure that you cast your variable to the proper type when you pass it to the function. -- Dave Carrigan ([EMAIL PROTECTED]) | Yow! I'm in ATLANTIC CITY riding UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-DNS | in a comfortable ROLLING Seattle, WA, USA | CHAIR... http://www.rudedog.org/ | -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
