On Fri, 22 Dec 2006 10:10:57 -0700, Paul Gilmartin <[EMAIL PROTECTED]>
wrote:

>In a recent note, Phil Sidler said:
>
>> Date:         Fri, 22 Dec 2006 10:38:42 -0600
>>
>> #pragma runopts(PLIST(OS))
>>
>> struct parm {
>>   short parm_len;
>>   char  parm_data[32767];  /* not the real size of the array */
>>   };
>>
>But this assumes that there's a halfword count field, supplied by
>linkmvs but not by linkpgm, and not part of the interface for (e.g.):
>
>o CSNBOWH, etc.
>
>>     strncpy(ts, parmp->parm_data, MIN(sizeof(ts)-1, parmp->parm_len));
>>
>and this assumes the parms contain no binary zero bytes; again
>not a safe assumption for:
>
>o CSNBOWH, etc.
>
>o alternate DDNAME lists for utilities.

I suppose I should have quoted more of the thread.  The question was about
about linkmvs which does set the length field (linkpgm was discussed
earlier) and the problem was to printf the parms.  So, yes, this isn't a
general solution. 

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to