BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kfullpath - Expand a environment variables in a path

LIBRARY CALL

char *kfullpath(
   const char *filename,
   const char *dir,
   char  *fullpath)

INPUT

OUTPUT

RETURN VALUE

pointer to fullpath if it is not NULL, or a pointer to a kmalloc'ed string containing the result.

DESCRIPTION

This function returns the full path to the user supplied file. "kfullpath" expands all environment variables in a path, and returns a full path back the user. If the file specified with a ~username, then the path will be expanded.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

if fullpath is NULL, it kmalloc's the return string

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/path.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.