Mail Archives: djgpp/1998/01/20/20:08:03
something like
#include<stdio.h>
int main(void)
{
int i;
char c;
float f;
printf("Size of integer: %d\n", sizeof(i);
printf("Size of char: %d\n", sizeof(c);
printf("Size of float: %d\n", sizeof(f);
return 0;
}
(and so on) is the general idea. I believe sizeof(int) is equivelant to sizeof(i) in the above. WORD and DWORD (and the like) are most likely preprocessor macros that you can find if you look carefully through the header files.
In message <34C53551 DOT D297940B AT jet DOT es>, "Jordi Pérez" <jordimln AT jet DOT es> wrote:
> Please, excuse my stupid question (and my english), but i can't find
> info about the data types in DJGPP (char, int, float, pointers...).
> I want to know how long they are (int = WORD?,long int = DWORD?, ...).
> Thanks
>
> ------------------------------------------------>
> Jordi Perez Bou, jordimln AT jet DOT es
> alternative mail: e6707357 AT est DOT fib DOT upc DOT es
>
>
>
>
>
- Raw text -