|
>Date: Sat, 12 May 01 19:20:29 +1000 >From: "Simon Coulter" <shc@flybynight.com.au> I wrote: >>(You can't use *OMIT with program calls anyway ...) and then you wrote >'Course you can! if the call is prototyped. ... Oops, right you are. *OMIT isn't allowed for the PARM opcode and I assumed the same applied to prototyped calls to programs. >I doubt that QMHSNDPM is checking for a null pointer on the 3rd parameter >(although you never know -- it is one of the older programs on the system >suggesting it was written by someone who knew what they were doing ... It may work, but I doubt it's actually supported to call a program API with a null pointer. I imagine you're fairly safe the third parm of QMHSNDPM, but if you prototype the third parm of QMHSNDPM as const, you can pass '' when you have no replacement text. Even better, define a named constant NO_REPLACEMENT_TEXT in your qmhsndpm /copy file and code that as the parameter. Barbara Morris +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.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.