[fpc-pascal]How to get the Home Directory of the user?

Peter Vreman peter at freepascal.org
Sat Aug 31 17:11:04 CEST 2002


At 12:30 31-8-02, you wrote:
>Hello, Every body
>
>   Can you tell me how to get the Home Directory of a user in free pascal 
> under
>linux? Thank you very much.

The environment variable HOME can be used: getenv('HOME')


Peter





More information about the fpc-pascal mailing list