Phil Sidler wrote:
On Thu, 21 Dec 2006 17:47:30 -0600, Phil Sidler <[EMAIL PROTECTED]> wrote:
I don't think so, for address linkmvs. You have to
You're right. This only works for 1 parameter as if from a JCL PARM.
Rexx extends this and c doesn't handle multiple "PARMS".
So, according the the LE Programming Guide, you should use __osplist for
this. So,
#pragma runopts(PLIST(OS))
struct parm {
short parm_len;
char parm_data[32767]; /* not the real size of the array */
};
int main(int argc, char * argv[]) {
struct parm * parmp;
int parm_idx= 0;
char ts[256];
do {
parmp = (struct parm *) __osplist[parm_idx];
strncpy(ts, parmp->parm_data, MIN(sizeof(ts)-1, parmp->parm_len));
printf("%08X %5d %s\n", parmp, parmp->parm_len, ts);
}
while ( 0 == ((int) __osplist[parm_idx++] & 0x80000000) );
return(0);
}
Thanks! Once again, you've given me an example and
the insight to solve the problem the way I need to
for the sample code and labs.
Sorry it took a while to respond; I'm in Denver (along
with Paul and Howard and a few others on the list) and
I had a small window here to get some Christmas
shopping done before more snow comes in tomorrow.
Kind regards,
-Steve Comstock
----------------------------------------------------------------------
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