From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: C++, complex, etc Date: Thu, 18 May 2000 18:34:53 +0400 Organization: MTU-Intel ISP Lines: 23 Message-ID: <3923FF8D.D241020C@mtu-net.ru> References: <3923BA11 DOT AD387617 AT mtu-net DOT ru> <8g0to9 DOT 3vs4qnf DOT 0 AT buerssner-17104 DOT user DOT cis DOT dfn DOT de> <3923E49D DOT 870F5E34 AT mtu-net DOT ru> <8g0srq$ige$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> NNTP-Posting-Host: ppp101-7.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 958660497 73318 212.188.101.7 (18 May 2000 14:34:57 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 18 May 2000 14:34:57 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: ru,en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hans-Bernhard Broeker wrote: > > Alexei A. Frounze wrote: > > Do I need to declare a variable of "size_t" type, if I want to know length > > of the string using strlen()??? > > If you want to store the value of the strlen() call: Yes, most > certainly you have to. If you don't, you risk breaking your program on > some platform, where it could usually have worked nicely. A simple > example: if the char* variable 'mystring' happens to point to string > of 40000 characters, and you do this: OKay. Right now I want to know who use size_t variables for working with LIBC? People plz say how many of you really do that. Just interesting am I the only person who doesn't use size_t? -- Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru