How to get filename from path, with or without _splitpath?
- From: "LM" <sala.nimi@xxxxxxxx>
- Date: 14 Nov 2005 12:25:10 -0800
Hi all.
I need to get filename and extension from a path. _splitpath seems to
be good for that, you would think that MS knows the rules of paths and
filenames. But MSDN warns about buffer over runs in splitpath
documentation.
Should I check for maximum pathlenght or what?
So is there any rules?
Or do I just search for last "\" for filename and last "." for
extension?
.
- Follow-Ups:
- Re: How to get filename from path, with or without _splitpath?
- From: LM
- Re: How to get filename from path, with or without _splitpath?
- From: Jochen Kalmbach [MVP]
- Re: How to get filename from path, with or without _splitpath?
- Prev by Date: Re: Unable to get type ***
- Next by Date: Re: How to get filename from path, with or without _splitpath?
- Previous by thread: Unable to get type ***
- Next by thread: Re: How to get filename from path, with or without _splitpath?
- Index(es):
Relevant Pages
|