Logo Search packages:      
Sourcecode: ardour version File versions  Download package

std::string Glib::getenv ( const std::string &  variable  ) 

Returns the value of an environment variable. The name and value are in the GLib file name encoding. On Unix, this means the actual bytes which might or might not be in some consistent character set and encoding. On Windows, it is in UTF-8. On Windows, in case the environment variable's value contains references to other environment variables, they are expanded.

variable The environment variable to get.
The value of the environment variable, or "" if not found.

Definition at line 75 of file miscutils.cc.

  const char *const value = g_getenv(variable.c_str());
  return (value) ? std::string(value) : std::string();

Generated by  Doxygen 1.6.0   Back to index