× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 2010/11/5 5:45 PM, Dennis Lovelady wrote:
For that to be true, wouldn't you need *CNOWIDEN on the prototype for the
call? Otherwise it's integer, right?


I doubt that *CNOWIDEN would work. I don't know what "bool" means, but I doubt that a bool is a character value where "true" is '1' (x'F1') or "false" is '0' (x'F0'). More likely that a bool is integer-ish, and "false" is 0 and "true" is 1 (or maybe "true" is anything-but-zero since that's how C currently handles numeric values used in a boolean way).

What *CWIDEN does is widen 1-byte character, and 1- and 2- byte (signed or unsigned) integers, and 2-byte UCS-2 and DBCS to be passed as 4-byte (signed or unsigned) integers, and 4-byte floats to be passed as 8-byte floats. *CNOWIDEN says not to do any widening, but to handle 1-byte character as 1-byte unsigned integer and 2-byte UCS-2 or DBCS as 2-byte unsigned integer).

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.