hw_FilePart -- get last component of a path specification (V5.0)
Synopsis
STRPTR f = hw_FilePart(STRPTR name);
Function
This function returns a pointer to the last component in the specified path.
If the path points to a file, then the last component is always the file name.
If there is only one component in the path specification, hw_FilePart()
will return a pointer to the beginning of the string.