www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/22/22:26:58

Date: Tue, 22 Jul 1997 22:25:17 -0400 (EDT)
Message-Id: <1.5.4.16.19970723075717.0e7f306e@giasbga.vsnl.net.in>
Mime-Version: 1.0
To: Chris Croughton <crough45 AT amc DOT de>
From: Chirayu Krishnappa <chirayu AT radiolink DOT net>
Subject: Re: sizeof() in #if
Cc: djgpp AT delorie DOT com

>However, all is not lost.  There is a very useful header file 
>defined in the ANSI standard which contains things about the sizes
>of variables.  It's called limits.h.  Among the things it defines

Thanks! I'm using this approach now.

>Also, for portability, you need to specify 'signed' and
>'unsigned' char - one of the sillier ANSI backwards 
>compatabilities is that a 'char' can be either signed or 

Me always use unsigned char. In Borland C++, I had a compiler switch, in
GCC, I do it explictly!

>(Note that several Unix systems already have a "types.h"
>file, it might be an idea to call yours something different.)

It will be my_types.h! :-))

>(BTW, this really should have been in a C newsgroup, it's not 
>specific to DJGPP.  Something like it is probably in a FAQ
>somewhere as well, but I can't direct you to it because I don't
>know where either...)

Sorry. And BTW, I dunno anything about newsgroups, etc. Some html page had
this djgpp mailing group bit and I registered. Thats all. Cd u tell me if
something similair is possibe for a c++ newsgroup?


Bye,

Chirayu Krishnappa:
------------------
e-mail: chirayu AT poboxes DOT com
Phone:  91 080 3332616.
============================================================================
==========

- Raw text -


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