Re: split a /path/filename into components
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 08:26:54 +0200
Eric wrote:
Is there a C library function that can take a path and break it into its
component parts? I think dos has one called fnsplit but i cant seem to find
an equal in the linux world
None that I know of, but you can use easily roll your own by using strchr() (or index())to find the next / character.
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
.
- Prev by Date: what does 'bis' mean in RFC title?
- Next by Date: Re: split a /path/filename into components
- Previous by thread: Re: split a /path/filename into components
- Next by thread: Re: split a /path/filename into components
- Index(es):
Relevant Pages
|