tilde_expand

[ XITE Reference Manual | XITE home ]

Name

tilde_expand - expand tilde and environment variables in filenames.

Syntax

 #include <xite/utils.h>

 char *tilde_expand( char* filename );

Description

Expand ~ (tilde) and environment variables in filename.

Return value

The expanded name of the file (or NULL). The required memory is allocated by this function and should be freed (with free(3)) when no longer needed.

Authors

Ellen Sentovich, Rick Spickelmier

Modifications

Otto Milvang, Svein Bøe

Id

$Id: tilde_expand.c,v 1.26 1996/01/25 11:35:17 svein Exp $