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

# FpGetcwd

Retrieve the current working directory.

## Declaration

Source position: bunxh.inc line 62

`function FpGetcwd(`
`path: pChar;`
`siz: TSize`
`):pChar; function FpGetcwd: RawByteString;`

## 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

FpGetPID |  | Return current process ID
FpGetUID |  | Return current user ID

Documentation generated on: May 14 2021