|
>If some API expects a 30-byte first parameter, do the following three calls >from the command line produce the same results? If not, where does the API >insert a null terminal? > >/* no quotes */ >CALL SOMEAPI PARM(XYZ) > >/* 3 bytes in quotes */ >CALL SOMEAPI PARM('XYZ') > >/* 30 bytes in quotes */ >CALL SOMEAPI PARM('XYZ ') Qcmd maps numeric literal arguments into a 15,5 packed fld. ( not sure what happens if the numeric has more than 10 whole digits ) Character literals look to be mapped into a fld that is a min of 32 in lgth and a multiple of 16 after that. The literal is then copied into this "pass" fld and padded with blanks. No hex 00 null terminator at all. -Steve +--- | This is the MI Programmers Mailing List! | To submit a new message, send your mail to MI400@midrange.com. | To subscribe to this list send email to MI400-SUB@midrange.com. | To unsubscribe from this list send email to MI400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dr2@cssas400.com +---
As an Amazon Associate we earn from qualifying purchases.
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.