delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/18/07:36:01

Message-ID: <3923BA11.AD387617@mtu-net.ru>
Date: Thu, 18 May 2000 13:38:25 +0400
From: "Alexei A. Frounze" <alex DOT fru AT mtu-net DOT ru>
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: ru,en
MIME-Version: 1.0
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
Cc: djgpp AT delorie DOT com
Subject: Re: C++, complex, etc
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000518113101 DOT 12245I-100000 AT is>
X-Recipient: eliz AT is DOT elta DOT co DOT il
Reply-To: djgpp AT delorie DOT com

Eli Zaretskii wrote:
> 
> On Thu, 18 May 2000, Alexei A. Frounze wrote:
> 
> > I don't use size_t in my sources.
> 
> You cannot do that if those sources call standard functions which accept
> or return size_t values, such as strlen, memcpy, malloc, etc.  If you use
> int instead of size_t in these cases, your code becomes non-portable.

Really? How about type casting? It doesn't work at all for int<->size_t?

> > Only standard types: char, short, int, long int, long long,...
> 
> size_t is a standard type, it is defined by the ANSI/ISO C standard (the
> old one, known as C90).

If it's a standard type, what is it needed for then? Isn't int enough?

bye.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror:   http://members.xoom.com/alexfru


- Raw text -


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