Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/share/gtk-doc/html/glib/ drwxr-xr-x |
Viewing file: Select action/file-type:
Synopsis#include <glib.h> const gchar* g_get_application_name (void); void g_set_application_name (const gchar *application_name); gchar* g_get_prgname (void); void g_set_prgname (const gchar *prgname); const gchar* g_getenv (const gchar *variable); gboolean g_setenv (const gchar *variable, const gchar *value, gboolean overwrite); void g_unsetenv (const gchar *variable); const gchar* g_get_user_name (void); const gchar* g_get_real_name (void); const gchar* g_get_user_cache_dir (void); const gchar* g_get_user_data_dir (void); const gchar* g_get_user_config_dir (void); const gchar* const * g_get_system_data_dirs (void); const gchar* const * g_get_system_config_dirs (void); const gchar* g_get_home_dir (void); const gchar* g_get_tmp_dir (void); gchar* g_get_current_dir (void); const gchar* g_basename (const gchar *file_name); #define g_dirname gboolean g_path_is_absolute (const gchar *file_name); const gchar* g_path_skip_root (const gchar *file_name); gchar* g_path_get_basename (const gchar *file_name); gchar* g_path_get_dirname (const gchar *file_name); gchar* g_build_filename (const gchar *first_element, ...); gchar* g_build_path (const gchar *separator, const gchar *first_element, ...); gchar* g_find_program_in_path (const gchar *program); gint g_bit_nth_lsf (gulong mask, gint nth_bit); gint g_bit_nth_msf (gulong mask, gint nth_bit); guint g_bit_storage (gulong number); guint g_spaced_primes_closest (guint num); void g_atexit (GVoidFunc func); guint g_parse_debug_string (const gchar *string, const GDebugKey *keys, guint nkeys); GDebugKey; void (*GVoidFunc) (void); void (*GFreeFunc) (gpointer data); void g_qsort_with_data (gconstpointer pbase, gint total_elems, gsize size, GCompareDataFunc compare_func, gpointer user_data); void g_nullify_pointer (gpointer *nullify_location); Detailsg_get_application_name ()const gchar* g_get_application_name (void);
Gets a human-readable name for the application, as set by
Since 2.2 g_set_application_name ()void g_set_application_name (const gchar *application_name);
Sets a human-readable name for the application. This name should be
localized if possible, and is intended for display to the user.
Contrast with Note that for thread safety reasons, this function can only be called once. The application name will be used in contexts such as error messages, or when displaying an application's name in the task list.
g_get_prgname ()gchar* g_get_prgname (void);
Gets the name of the program. This name should not be localized,
contrast with
g_set_prgname ()void g_set_prgname (const gchar *prgname);
Sets the name of the program. This name should not be localized,
contrast with
g_getenv ()const gchar* g_getenv (const gchar *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.
g_setenv ()gboolean g_setenv (const gchar *variable, const gchar *value, gboolean overwrite); Sets an environment variable. Both the variable's name and value should be in the GLib file name encoding. On Unix, this means that they can be any sequence of bytes. On Windows, they should be in UTF-8. Note that on some systems, when variables are overwritten, the memory used for the previous variables and its value isn't reclaimed.
Since 2.4 g_unsetenv ()void g_unsetenv (const gchar *variable); Removes an environment variable from the environment. Note that on some systems, when variables are overwritten, the memory used for the previous variables and its value isn't reclaimed. Furthermore, this function can't be guaranteed to operate in a threadsafe way.
Since 2.4 g_get_user_name ()const gchar* g_get_user_name (void); Gets the user name of the current user. The encoding of the returned string is system defined. On Unix, it might be the preferred file name encoding, or something else, and there is no guarantee that it is even consistent on a machine. On Windows, it is always UTF-8.
g_get_real_name ()const gchar* g_get_real_name (void);
Gets the real name of the user. This usually comes from the user's entry in the
g_get_user_cache_dir ()const gchar* g_get_user_cache_dir (void); Returns a base directory in which to store non-essential, cached data specific to particular user. On Unix platforms this is determined using the mechanisms described in the XDG Base Directory Specification
Since 2.6 g_get_user_data_dir ()const gchar* g_get_user_data_dir (void); Returns a base directory in which to access application data such as icons that is customized for a particular user. On Unix platforms this is determined using the mechanisms described in the XDG Base Directory Specification
Since 2.6 g_get_user_config_dir ()const gchar* g_get_user_config_dir (void); Returns a base directory in which to store user-specific application configuration information such as user preferences and settings. On Unix platforms this is determined using the mechanisms described in the XDG Base Directory Specification
Since 2.6 g_get_system_data_dirs ()const gchar* const * g_get_system_data_dirs (void); Returns an ordered list of base directories in which to access system-wide application data. On Unix platforms this is determined using the mechanisms described in the XDG Base Directory Specification
Since 2.6 g_get_system_config_dirs ()const gchar* const * g_get_system_config_dirs (void); Returns an ordered list of base directories in which to access system-wide configuration information. On Unix platforms this is determined using the mechanisms described in the XDG Base Directory Specification
Since 2.6 g_get_home_dir ()const gchar* g_get_home_dir (void); Gets the current user's home directory.
Note that in contrast to traditional Unix tools, this function
prefers
g_get_tmp_dir ()const gchar* g_get_tmp_dir (void);
Gets the directory to use for temporary files.
This is found from inspecting the environment variables
g_get_current_dir ()gchar* g_get_current_dir (void); Gets the current directory. The returned string should be freed when no longer needed. The encoding of the returned string is system defined. On Windows, it is always UTF-8.
g_basename ()const gchar* g_basename (const gchar *file_name); Warning
Gets the name of the file without any leading directory components. It returns a pointer into the given file name string.
g_dirname#define g_dirname Warning
This function is deprecated and will be removed in the next major
release of GLib. Use Gets the directory components of a file name. If the file name has no directory components "." is returned. The returned string should be freed when no longer needed.
g_path_is_absolute ()gboolean g_path_is_absolute (const gchar *file_name);
Returns
g_path_skip_root ()const gchar* g_path_skip_root (const gchar *file_name);
Returns a pointer into
g_path_get_basename ()gchar* g_path_get_basename (const gchar *file_name);
Gets the last component of the filename. If
g_path_get_dirname ()gchar* g_path_get_dirname (const gchar *file_name); Gets the directory components of a file name. If the file name has no directory components "." is returned. The returned string should be freed when no longer needed.
g_build_filename ()gchar* g_build_filename (const gchar *first_element, ...); Creates a filename from a series of elements using the correct separator for filenames.
On Unix, this function behaves identically to
On Windows, it takes into account that either the backslash
( No attempt is made to force the resulting filename to be an absolute path. If the first element is a relative path, the result will be a relative path.
g_build_path ()gchar* g_build_path (const gchar *separator, const gchar *first_element, ...);
Creates a path from a series of elements using Empty elements are ignored. The number of leading copies of the separator on the result is the same as the number of leading copies of the separator on the first non-empty element.
The number of trailing copies of the separator on the result is
the same as the number of trailing copies of the separator on
the last non-empty element. (Determination of the number of
trailing copies is done without stripping leading copies, so
if the separator is However, if there is only a single non-empty element, and there are no characters in that element not part of the leading or trailing separators, then the result is exactly the original value of that element. Other than for determination of the number of leading and trailing copies of the separator, elements consisting only of copies of the separator are ignored.
g_find_program_in_path ()gchar* g_find_program_in_path (const gchar *program);
Locates the first executable named
It looks for the file in the same way as
g_bit_nth_lsf ()gint g_bit_nth_lsf (gulong mask, gint nth_bit);
Find the position of the first bit set in
g_bit_nth_msf ()gint g_bit_nth_msf (gulong mask, gint nth_bit);
Find the position of the first bit set in
g_bit_storage ()guint g_bit_storage (gulong number);
Gets the number of bits used to hold
g_spaced_primes_closest ()guint g_spaced_primes_closest (guint num);
Gets the smallest prime number from a built-in array of primes which
is larger than The built-in array of primes ranges from 11 to 13845163 such that each prime is approximately 1.5-2 times the previous prime.
g_atexit ()void g_atexit (GVoidFunc func); Specifies a function to be called at normal program termination.
g_parse_debug_string ()guint g_parse_debug_string (const gchar *string, const GDebugKey *keys, guint nkeys); Parses a string containing debugging options separated by ':' into a guint containing bit flags. This is used within GDK and GTK+ to parse the debug options passed on the command line or through environment variables. GDebugKeytypedef struct { gchar *key; guint value; } GDebugKey;
Associates a string with a bit flag.
Used in GVoidFunc ()void (*GVoidFunc) (void);
Declares a type of function which takes no arguments and has no return value.
It is used to specify the type function passed to GFreeFunc ()void (*GFreeFunc) (gpointer data); Declares a type of function which takes an arbitrary data pointer argument and has no return value. It is not currently used in GLib or GTK+.
g_qsort_with_data ()void g_qsort_with_data (gconstpointer pbase, gint total_elems, gsize size, GCompareDataFunc compare_func, gpointer user_data);
This is just like the standard C
g_nullify_pointer ()void g_nullify_pointer (gpointer *nullify_location);
Set the pointer at the specified location to
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0047 ]-- |