🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem in deleting file!

#17319
From: nicolasr
Date: Sat, 29 Mar 2003 01:44
14 lines
1449 bytes
thanks for the hints.
Just a few questions to make sure I understand correctly:

Is
   char buffer[MAX_PATH+2] = {0};
equivalent to
   char buffer[MAX_PATH+2] = ""; ?
I have not seen ={0} yet.

I read up the strncpy() help. Is it here where the double \0 comes from? The
help says that strncpy() is null-padding the destination string.

thanks,
Nick
Technical Details
Message-ID: <3e84fa8a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3E8408FF.5040308@alloymail.com> <3e840eac$1@newsgroups.borland.com> <3E842BD0.1060302@alloymail.com> <3e84ad5c$1@newsgroups.borland.com> <3e84b0d4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,5fde27ba165b16db
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-28 17:58:18 PST
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3E8408FF.5040308@alloymail.com> <3e840eac$1@newsgroups.borland.com> <3E842BD0.1060302@alloymail.com> <3e84ad5c$1@newsgroups.borland.com> <3e84b0d4$1@newsgroups.borland.com>
Subject: Re: Problem in deleting file!
Date: Sat, 29 Mar 2003 02:44:04 +0100
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.133.164.117
Message-ID: <3e84fa8a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048902282 80.133.164.117 (28 Mar 2003 17:44:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail