Thanks Bruce. I was hoping IBM api will check the address of the * parameter before using it. Sigh. . . .
"Bruce Vining" <bvining@xxxxxxxxxxxxxxx> wrote in message news:<mailman.3487.1233185496.21608.midrange-l@xxxxxxxxxxxx>...
No.
Parameters defined as being Omissible can be passed as a Null pointer, but that is it. Optional parameters are not the same as omissible. If you are passing a Null pointer for an optional parameter, and the API is working, I would say you are very lucky.
Bruce
Bruce Vining Services
507-206-4178
--- On Wed, 1/28/09, Lim Hock-Chai <Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote:
From: Lim Hock-Chai <Lim.Hock-Chai@xxxxxxxxxxxxxxx>
Subject: IBM API standard on optional (*) parameter
To: "Midrange Systems Technical Discussion" <midrange-l@xxxxxxxxxxxx>
Date: Wednesday, January 28, 2009, 5:04 PM
Is it safe to pass null pointer to any optional (*) parameter on any IBM
api and assume that IBM api will treat it as parameter not being passed?
This mailing list archive is Copyright 1997-2026 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.