🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #4994

Re: char *buf is bugged ?

#4994
From: Alfred
Date: Mon, 24 Oct 2005 18:35
13 lines
1242 bytes

>What about the string terminator? Also:Why use calloc()?
You right.. It work perfect now :)

>  std::vector<char> buf( Size );
>  File->Read( &( buf[ 0 ] ), Size );

Wow I never used vector before, they are great. Thank you very much :)
What about : char * buf=new char[Size]; ?
It is good like a vector or it is not a good idea to use ?
Thank you very much
Alfred
Technical Details
Message-ID: <435d2986$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <435cd85e$1@newsgroups.borland.com> <435ce2e1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a803499fd1f61208
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alfred" <alf@no.spam.not.valied.email>
Sender: "Alfred" <alf@no.spam.not.valied.email>
Reply-To: "Alfred" <alf@no.spam.not.valied.email>
Subject: Re: char *buf is bugged ?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 82.52.161.215     
References: <435cd85e$1@newsgroups.borland.com> <435ce2e1$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <435d2986$1@newsgroups.borland.com>
Date: 24 Oct 2005 11:35:50 -0700
X-Trace: newsgroups.borland.com 1130178950 207.105.83.66 (24 Oct 2005 11:35:50 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail