"C people" ... sounds like the "gettext" aficionados I butted heads with.
Sorry. I'm venting.
What to them was tedium (they didn't like "the mainframe way" of message
formatting) in my mind was just rigor and due diligence.
I do confess that this enumerated items thingy looks way better than
what my friends were doing ... now more than 20 years ago.
But do they account for locale variances?
-- R; <><
On 10/2/25 11:49 PM, Phil Smith III wrote:
Ah ha! Ya know, I asked our C people (who are not mainframe folks) about that and was
assured "Oh, it's some big number". I should have insisted we check!
A doc suggestion: while it says it's NL_ARGMAX, it doesn't say where that's
defined or anything. Seems like it might give a hint?
Thanks for the response, Linda. I feel a lot better about this--it seemed like
a very basic bug to not have been caught!
...phsiii
-----Original Message-----
From: IBM Mainframe Discussion List <[email protected]> On Behalf Of
Linda Chui
Sent: Thursday, October 2, 2025 10:14 PM
To: [email protected]
Subject: Re: Anyone using XL C?
hi,
As was said others, this is a C runtime issue. As seen by the runtime library
reference
(https://www.ibm.com/docs/en/zos/3.2.0?topic=functions-fprintf-printf-sprintf-format-write-data),
the maximum number of positional arguments is NL_ARGMAX. Looking at limits.h,
you can see this value is 9 and hence the library is doing what it expected.
You can always request this limit be raised through the IBM Idea’s forum, but
it doesn’t look like a bug.
Hope this helps,
z/OS XL C/C++ Compiler Team
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to
[email protected] with the message: INFO IBM-MAIN
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN
--
-- R; <><
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN