|
Buck's comment about cvthc instead of cvtch is probably correct (as well as his binary/integer/bytes discussion). I have to think both of those APIs through before I use them each time because they seem counterintuitive. For example, to convert the single byte x'5C' to the two bytes '5' and 'C', use cvthc -- converts the hex-value to characters, input length is half of output length. To convert the two bytes 'F1' to the single byte x'F1', use cvtch -- converts characters to hex-values, input length is twice output length. In either case, the "characters" will always be hex characters 0-9 and A-F. Tom Liotta rpg400-l-request@midrange.com wrote: > 1. RE: Convert hex to char (cvtch) (Buck Calabro) >In this case, I think you really want the other function: cvthc. You have >'binary' stuff that you want translated into EBCDIC do you can see it in a >query or something. Use the same prototype but declare the size to be twice >the size of the input (you're taking each nybble and turning it into a >character.) -- -- Tom Liotta The PowerTech Group, Inc. 19426 68th Avenue South Kent, WA 98032 Phone 253-872-7788 x313 Fax 253-872-7904 http://www.powertechgroup.com __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.