On Wed, 5 Sep 2012 07:17:38 -0700, Scott Ford wrote:
>Here my example I was referring to initially..
Execution JCL:
typedef struct IRXJCL_type
{
short int arg_length;
char argument[22];
} IRXJCL_type;
puts(this_param.argument);
IDFRACFC USER AA1122BB
Without the memset in this example the C code fails. I am not the C heavy a lot
of folks are here,
but the ILC manual pretty much shows the same thing in examples going from C ->
Cobol -> C ..
I count 22 characters in your output. That plus a terminating \0 is 23,
overflowing a 22-character buffer. It's remains a mystery that the
memset() (not quoted) changes this.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN