🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Filename problem solved!

#16813
From: Remy Lebeau (TeamB)
Date: Thu, 24 Apr 2003 22:19
15 lines
1445 bytes
"Frank Eid" <frank@spi.no> wrote in message
news:3ea8594c$1@newsgroups.borland.com...

> Yeah, but it need lot's of defining of char arrays
> (possible with memory alloc)

Hardly any, actually.  If all you want is the filename portion only, then
just pass that buffer in only and set everything else to NULL:

    char filename[MAXFILE+1] = {0};
    fnsplit("C:\\mydir\\myfile.ext", NULL, NULL, filename, NULL);


Gambit
Technical Details
Message-ID: <3ea862b3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ea85256$1@newsgroups.borland.com> <3ea85787$1@newsgroups.borland.com> <3ea8594c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,72b0c0166f06175b
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-24 15:27:01 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ea85256$1@newsgroups.borland.com> <3ea85787$1@newsgroups.borland.com> <3ea8594c$1@newsgroups.borland.com>
Subject: Re: Filename problem solved!
Date: Thu, 24 Apr 2003 15:19:32 -0700
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3ea862b3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051222707 207.175.226.26 (24 Apr 2003 15:18:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail