lkml.org 
[lkml]   [1999]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Q: void* vs. unsigned long (fwd)
Alan Shutko writes:
> Digital Unix on Alpha [ . . . ] long is 32.

No.

stevev@hexadecimal:~/src 503>uname -a
OSF1 hexadecimal.uoregon.edu V4.0 1091 alpha
stevev@hexadecimal:~/src 509>cat bitsizes.c
#include <stdio.h>

int main(int argc, char *argv[])
{
printf("sizeof(char) == %d\n", sizeof(char));
printf("sizeof(short) == %d\n", sizeof(short));
printf("sizeof(int) == %d\n", sizeof(int));
printf("sizeof(long) == %d\n", sizeof(long));
printf("sizeof(long long) == %d\n", sizeof(long long));
printf("sizeof(float) == %d\n", sizeof(float));
printf("sizeof(double) == %d\n", sizeof(double));
printf("sizeof(long double) == %d\n", sizeof(long double));
printf("sizeof(void *) == %d\n", sizeof(void *));
return 0;
}
stevev@hexadecimal:~/src 510>./bitsizes
sizeof(char) == 1
sizeof(short) == 2
sizeof(int) == 4
sizeof(long) == 8
sizeof(long long) == 8
sizeof(float) == 4
sizeof(double) == 8
sizeof(long double) == 8
sizeof(void *) == 8

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.048 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site