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 Content-Type: text/plain; charset="us-ascii" To: Chris Croughton From: Chirayu Krishnappa Subject: Re: sizeof() in #if Cc: djgpp AT delorie DOT com Precedence: bulk >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. ============================================================================ ==========