On Thu, Feb 8, 2018 at 11:39 AM, Paul Gilmartin <
0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote:

> On Thu, 8 Feb 2018 10:22:40 -0600, Allan Kielstra wrote:
>
> >The size of a char in 1 byte.  Try
> >
> >(char *) ASXB = (char *) ASCB + 0x6c;  /* lazy version */
> >
> ANSI says a cast may not be used as an L-value.  IBM's C compiler
> enforces this.  I once did something like (IIRC?):
>     *(char * *) ASXB += 0x6c;
>

​I did it this way:

        char *psaaold;
        char *ascbjbni;
        unsigned char *ascbjbns;
        unsigned char *ascbjbn;
        unsigned char *a;
        unsigned char jobname[9];
        psaaold = *(unsigned char **)0x224;     /* address of PSAAOLD */
        ascbjbni = *(unsigned char **)(psaaold + 0xac);
        ascbjbns = *(unsigned char **)(psaaold + 0xb0);​



>
> My head hurts.
>
> -- gil
>


-- 
I have a theory that it's impossible to prove anything, but I can't prove
it.

Maranatha! <><
John McKown

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to