delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/20/20:08:03

Date: Tue, 20 Jan 1998 20:07:43 -0500 (EST)
Message-Id: <199801210107.UAA22018@p2.acadia.net>
To: "Jordi Pérez" <jordimln AT jet DOT es>
Subject: Re: Data types
Cc: djgpp AT delorie DOT com
References: <34C53551 DOT D297940B AT jet DOT es>
in-reply-to: <34C53551.D297940B@jet.es>
From: swarnerx3 AT acadia DOT net (Scott Warner)
MIME-Version: 1.0

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 -


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