Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

eval.h File Reference


Detailed Description

String evaluation.

Author:
Raphael Manfredi
Date:
2003

#include <glib.h>

Go to the source code of this file.

Functions

void eval_init (void)
 Initialize string evaluation.

void eval_close (void)
 Cleanup local structures at shutdown time.

gchar * eval_subst (const gchar *str)
 Needs brief description here.


Function Documentation

void eval_close void   ) 
 

Cleanup local structures at shutdown time.

void eval_init void   ) 
 

Initialize string evaluation.

gchar* eval_subst const gchar *  str  ) 
 

Needs brief description here.

Substitutes variables from string:

  • The leading "~" is replaced by the home directory.
  • Variables like "$PATH" or "${PATH}" are replaced by their value, as fetched from the environment, or the empty string if not found.

If given a NULL input, we return NULL.

Returns:
string atom, which is not meant to be freed until exit time.


Generated on Sun Feb 12 10:50:00 2006 for Gtk-Gnutella by doxygen 1.3.6