Mail Archives: djgpp/1998/01/22/16:30:24
At 23:37 20/01/98 +0000, Jordi Pérez 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
>
Use sizeof for know size.
Usa sizeof para conocer el tamaño.
#define psize(a) printf("%s->%d\n",#a,sizeof(a))
int main()
{
psize(char);
psize(short);
psize(int);
psize(long);
return 0;
}
--
Jose Luis Perandones Colino
mailto:joepc AT writeme DOT com
ICQ: 5209447
EmuWorks - http://www.geocities.com/SiliconValley/Bay/9494
La Bañeza - Leon - Spain
- Raw text -