PetscGetHomeDirectory

Returns user's home directory name.

Synopsis

int PetscGetHomeDirectory(char dir[],int maxlen)
Not Collective

Input Parameter

maxlen -maximum lengh allowed

Output Parameter

dir -contains the home directory. Must be long enough to hold the name.

Note

On Windows NT machine the enviornmental variable HOME specifies the home directory.

Keywords

system, get, real, path

Level:developer
Location:src/sys/src/fileio/ghome.c
System Index
Table of Contents