From: Martin Ambuhl Newsgroups: comp.os.msdos.djgpp Subject: Re: Kill the path, keep the filename? Date: Thu, 14 Jan 1999 02:50:57 -0500 Content-Transfer-Encoding: 7bit References: <369D971A DOT 4D751546 AT cadvision DOT com> X-Posted-Path-Was: not-for-mail X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-ELN-Date: 14 Jan 1999 07:51:07 GMT X-ELN-Insert-Date: Wed Jan 13 23:55:09 1999 Organization: Nocturnal Aviation Lines: 16 Mime-Version: 1.0 NNTP-Posting-Host: 1cust6.tnt11.nyc3.da.uu.net Message-ID: <369DA1E1.93877E3@earthlink.net> X-Mailer: Mozilla 4.5 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Tim Hoskins wrote: > > Can anybody out there help me figure out how to cut the path off a > filename? > > IE: C:\Program Files\Netscape\Communicator\Program\Netscape.exe > > I want to work with just the Netscape.exe part... #include char *basename(const char *fname); -- Martin Ambuhl (mambuhl AT earthlink DOT net) Note: mambuhl AT tiac DOT net will soon be inactive