Name
hw_PathPart -- return a pointer to the end of the penultimate path component (V5.0)
Synopsis
STRPTR p = hw_PathPart(STRPTR path);
Function
This function returns a pointer to the end of the penultimate path component. This is usually a slash or backslash. The idea is that you can write a 0 to the pointer that is returned by hw_PathPart() in order to separate file and path components in a path specification. If there is only one component in the path specification, hw_PathPart() will return a pointer to the beginning of the string.

This function is thread-safe.

Designer compatibility
Supported since Designer 4.0

Inputs
path
path specification
Results
p
pointer to the end of the penultimate path component

Show TOC