[Overview][Constants][Types][Procedures and functions] Reference for unit 'BaseUnix' (#rtl)

FpGetcwd

Retrieve the current working directory.

Declaration

Source position: line 0

function FpGetcwd(

  path: pChar;

  siz: TSize

):pChar;

function FpGetcwd: AnsiString;

Description

fpgetCWDreturns the current working directory of the running process. It is returned in Path, which points to a memory location of at least sizbytes.

If the function is succesful, a pointer to Pathis returned, or a string with the result. On error Nilor an empty string are returned.

Errors

On error Nilor an empty string are returned.

See also

FpGetPID

  

Return current process ID

FpGetUID

  

Return current user ID