delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/22/16:30:24

Message-Id: <3.0.32.19980122101758.0069f150@195.53.80.2>
Date: Thu, 22 Jan 1998 22:25:43 +0100
To: =?iso-8859-1?Q?=22Jordi_P=E9rez=22?= <jordimln AT jet DOT es>,
DJGPP <djgpp AT delorie DOT com>
From: Jose Luis Perandones Colino <joepc AT writeme DOT com>
Subject: Re: Data types
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019