The function allocates and returns a pointer to a structure. Note that the pointer fields in the structure are initially set to NULL. If insufficient memory is available, returns NULL. To free the memory allocated to this structure, use
The function sets the class hint for the specified window. If the strings are not in the Host Portable Character Encoding, the result is implementation-dependent.
can generate and errors.
The function returns the class hint of the specified window to the members of the supplied structure. If the data returned by the server is in the Latin Portable Character Encoding, then the returned strings are in the Host Portable Character Encoding. Otherwise, the result is implementation-dependent. It returns a nonzero status on success; otherwise, it returns a zero status. To free res_name and res_class when finished with the strings, use on each individually.
can generate a error.