Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

FilePart

Returns the last component of a path

Declaration

Source position: amigados.pas line 1637

function FilePart(

  const path: pCHAR

):pCHAR;

function FilePart(

  const path: string

):pCHAR;

Arguments

path

  

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

Function result

pointer to the last component of the path.

Arguments

path

  

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

Description

This function returns a pointer to the last component of a string path specification, which will normally be the file name. If there is only one component, it returns a pointer to the beginning of the string.

See also

PathPart

  

Returns a pointer to the end of the next-to-last component of a path.

AddPart

  

Appends a file/dir to the end of a path


Documentation generated on: 2021-07-30