Function

GLibget_real_name

Declaration [src]

const gchar*
g_get_real_name (
  void
)

Description [src]

Gets the real name of the user. This usually comes from the user’s entry in the passwd file. The encoding of the returned string is system-defined. (On Windows, it is, however, always UTF-8.) If the real user name cannot be determined, the string “Unknown” is returned.

Return value

Type: const gchar*

The user’s real name.

The data is owned by the called function.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.