From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, complex, etc Date: Thu, 18 May 2000 12:21:33 -0400 Organization: http://unur.com/ Lines: 43 Sender: verified_for_usenet AT cornell DOT edu (asu1 on 128.253.251.163) Message-ID: <8g15d8$nl9$1@news01.cit.cornell.edu> References: <3923BA11 DOT AD387617 AT mtu-net DOT ru> NNTP-Posting-Host: 128.253.251.163 X-Trace: news01.cit.cornell.edu 958666984 24233 128.253.251.163 (18 May 2000 16:23:04 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 18 May 2000 16:23:04 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 To: djgpp AT Delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Alexei A. Frounze" wrote in message news:3923BA11 DOT AD387617 AT mtu-net DOT ru... > 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? are you seriously asking this or is this just a troll? what do you expect the following code to produce: #include int main(void) { char c; unsigned int i2; unsigned int i1 = 0x12345678; c = (char) i1; i2 = (unsigned int) c; printf("i1: %8.8x\tc: %2.2x\ti2: %8.8x\n", i1, c, i2); return 0; } do you think i1 == i2? Sinan. -- mailto:Sinan_Unur AT mail DOT com http://unur.com/