help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

FpChdir

Change current working directory.

Declaration

Source position: line 0

function FpChdir(

  path: pChar

):cint;

function FpChdir(

  path: AnsiString

):cint;

Description

fpChDir sets the current working directory to Path.

It returns zero if the call was succesful, -1 on error.

Note: There exist a portable alterative to fpChDir: system.chdir. Please use fpChDir only if you are writing Unix specific code. System.chdir will work on all operating systems.

Errors

Extended error information can be retrieved using fpGetErrno.

See also

fpGetCwd

  

Retrieve the current working directory.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505