On Thu, 21 Dec 2006 13:32:02 -0700, Steve Comstock
<[EMAIL PROTECTED]> wrote:

>Since the argument list for address linkmvs
>is a list (array) of addresses pointing to
>halfword prefix strings, I use:
>
>#pragma environment(CLA2)
>  struct argtable_entry {
>    short          argstring_len;
>    char           argstring[];
>    };
>

The c runtime takes care of this for you.  You are over analyzing it.

main (int argc, char * argv[]) {
 
 int i;
 
 for (i=1; ++i; i<argc)
  printf("%s ", argv[i]); 

}

or something similar should do it.
  

----------------------------------------------------------------------
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