(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/dos.h>

STRPTR FilePart (path)

LOCATION
In DOSBase at offset 145

SYNOPSIS
STRPTR path

FUNCTION
Get a pointer to the last component of a path, which is normally the filename.

INPUTS
path
pointer AmigaDOS path string May be relative to the current directory or the current disk.

RESULT
A pointer to the first char of the filename!

EXAMPLE
FilePart("xxx:yyy/zzz/qqq") returns a pointer to the first 'q'.
FilePart("xxx:yyy")         returns a pointer to the first 'y'.
FilePart("yyy")             returns a pointer to the first 'y'.
SEE ALSO
PathPart(), AddPart()

NOTES

BUGS
None known.

INTERNALS
Goes from the last char of the pathname back until it finds a ':', a '/' or until the first char reached.

HISTORY
20.10.1998 hkiel
Amiga Research OS
11.12.1997 hkiel
Changed files to work well with cpak
10.03.1997 ldp
Removed log, because it was a mess (formatting errors)
27.01.1997 ldp
Polish
09.12.1996 aros
Added empty templates for all missing functions

Moved #include's into first column

21.11.1996 aros
Created macros AROS_SLIB_ENTRY() for assembler files, too, to solve naming problems.

The #includes in the header *must* begin in the first column. Otherwise makedepend will ignore them (GCC works, though).

Removed a couple of Logs

24.10.1996 aros
Use the official AROS macros over the __AROS versions.
21.10.1996 aros
Better way to create a TEST
23.08.1996 digulla
Added #include "dos_intern.h"
20.08.1996 digulla
FilePart by Martin Steigerwald