In article <[email protected]> you wrote:
> HI 
>    I am looking in the XL C docs lang reference user guide programming guide
> For the length of the following data types 
>                   Short , int long and I cannot seem to find it
> frustrated 
>               I coded a program
> Int len; 
> Unsigned short shortype;
> Int len = sizeof(shorttype);
>  
>                    But the compiler seemed to comment the above statement
> and not generate the assembler ps (I am running metal c);
>                         Any help appreciate it

It depends. For 31-bit, it's ILP32, for 64-bit, it's LP64. See:

https://www.ibm.com/support/knowledgecenter/SSLTBW_2.4.0/com.ibm.zos.v2r4.cbcpx01/datatypesize64.htm

(short is always 2 bytes. SAS/C uses the same scheme.)

-- 
Don Poitras - SAS Development  -  SAS Institute Inc. - SAS Campus Drive
[email protected]           (919) 531-5637                Cary, NC 27513

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to