Article View: borland.public.cppbuilder.nativeapi
Article #6463Re: Response not in que?
From: Bob Gonder
Date: Tue, 10 May 2005 03:31
Date: Tue, 10 May 2005 03:31
17 lines
1841 bytes
1841 bytes
Remy Lebeau (TeamB) wrote:
>"Bob Gonder" wrote in message
>
>> // Clearer Clear the buffers
>> memset( bCommData, 0, sizeof(bCommData) );
>
>Since he did not show what bCommData is actually declared as, it would be
>safer to do the following:
>
> memset(bCommData, 0, BUFSIZE);
That was my original thought, but then decided bCommData might be
other than Byte in size. Since he was setting bCommData[i]=0, if it
was made of wchar or ints, then you'd only zero 1/2 or 1/4 of them.
How about
memset(bCommData, 0, BUFSIZE * sizeof( bCommData[0]) );
Technical Details
Message-ID:
<pha081p0llphlf254k6go823dl1k37sede@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <ukjv71lvb2s28pvi34r21cf1loa8nsqfnv@4ax.com> <427fd7cf$1@newsgroups.borland.com> <ainv71tis6a7m0pugjr1218hchvoha332j@4ax.com> <427ff5f0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,369fa724017da622 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Response not in que? Date: Mon, 09 May 2005 20:31:19 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <pha081p0llphlf254k6go823dl1k37sede@4ax.com> References: <427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <ukjv71lvb2s28pvi34r21cf1loa8nsqfnv@4ax.com> <427fd7cf$1@newsgroups.borland.com> <ainv71tis6a7m0pugjr1218hchvoha332j@4ax.com> <427ff5f0$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.41.187 X-Trace: newsgroups.borland.com 1115695876 67.77.41.187 (9 May 2005 20:31:16 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail