## FLhomeDir

#### Routine

int FLhomeDir (const char User[], char Home[])

#### Purpose

Get the home directory for a user

#### Description

This routine returns the path name corresponding to the home directory for a user. When the User argument is empty, the current user is assumed. In that case, the translation of the environment variable HOME is used if possible. In other cases, the home directory is taken from the password entry for the user. If the user is unknown, the home directory string is returned as "~User".

#### Parameters

<- int FLhomeDir
  Number of characters in the output string
-> const char User[]
  Input character string specifying the user. If this string is empty, the current user is used.
<- char Home[]
  Output string with the home directory. Except for the case of the root directory "/", the directory name does not have a trailing '/' character. This string is at most FILENAME_MAX characters long including the terminating null character.

#### Author / revision

P. Kabal / Revision 1.24 2003/05/09

#### See Also

FLexpHome

Main Index libtsp