Sign in Join
FPDoc Onlineexperiment

FpGetcwd function

In unit BaseUnix

Retrieve the current working directory.

Declaration

pascal
function FpGetcwd(path: PAnsiChar; siz: TSize): PAnsiChar

Description

fpgetCWD returns the current working directory of the running process. It is returned in Path, which points to a memory location of at least siz bytes.

If the function is successful, a pointer to Path is returned, or a string with the result. On error Nil or an empty string are returned.

Errors

On error Nil or an empty string are returned.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.