Miscellaneous Utilities

These are portable utility functions.

Application Name and Environment

System Directories

OS Info

Information about the current OS can be retrieved by calling g_get_os_info() and passing it one of the following keys (this list may grow in future):

  • G_OS_INFO_KEY_NAME
  • G_OS_INFO_KEY_PRETTY_NAME
  • G_OS_INFO_KEY_VERSION
  • G_OS_INFO_KEY_VERSION_CODENAME
  • G_OS_INFO_KEY_VERSION_ID
  • G_OS_INFO_KEY_ID
  • G_OS_INFO_KEY_HOME_URL
  • G_OS_INFO_KEY_DOCUMENTATION_URL
  • G_OS_INFO_KEY_SUPPORT_URL
  • G_OS_INFO_KEY_BUG_REPORT_URL
  • G_OS_INFO_KEY_PRIVACY_POLICY_URL

Paths

Size Formatting

Executables

Bit Manipulation

Primes

Process Lifetime

Debug

Sorting

Pointers

Deprecated API