www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/14/03:46:48

From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Kill the path, keep the filename?
Date: Thu, 14 Jan 1999 02:50:57 -0500
References: <369D971A DOT 4D751546 AT cadvision DOT com>
X-Posted-Path-Was: not-for-mail
X-Accept-Language: en
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 <unistd.h>
char *basename(const char *fname);


-- 
Martin Ambuhl (mambuhl AT earthlink DOT net)
Note: mambuhl AT tiac DOT net will soon be inactive

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019