XInternAtom - Online Linux Manual PageSection : 3
Updated : libX11 1.8.4
Source : X Version 11
Note : XLIB FUNCTIONS

NAMEXInternAtom, XInternAtoms, XGetAtomName, XGetAtomNames − create or return atom names

SYNTAXAtom XInternAtom ( Display *display , _Xconst char *atom_name , Bool only_if_exists); Status XInternAtoms ( Display *display , char **names , int count , Bool only_if_exists , Atom *atoms_return); char *XGetAtomName ( Display *display , Atom atom); Status XGetAtomNames ( Display *display , Atom *atoms , int count , char **names_return);

ARGUMENTSatom Specifies the atom for the property name you want returned. atoms Specifies the array of atoms. atom_name Specifies the name associated with the atom you want returned. atoms_return Returns the atoms. count Specifies the number of atom names in the array. display Specifies the connection to the X server. names Specifies the array of atom names. names_return Returns the atom names. only_if_exists Specifies a Boolean value that indicates whether the atom must be created.

DESCRIPTIONThe XInternAtom function returns the atom identifier associated with the specified atom_name string. If only_if_exists is False, the atom is created if it does not exist. Therefore, XInternAtom can return None. If the atom name is not in the Host Portable Character Encoding, the result is implementation-dependent. Uppercase and lowercase matter; the strings thing, Thing, and thinG all designate different atoms. The atom will remain defined even after the client's connection closes. It will become undefined only when the last connection to the X server closes. XInternAtom can generate BadAlloc and BadValue errors. The XInternAtoms function returns the atom identifiers associated with the specified names. The atoms are stored in the atoms_return array supplied by the caller. Calling this function is equivalent to calling XInternAtom for each of the names in turn with the specified value of only_if_exists, but this function minimizes the number of round-trip protocol exchanges between the client and the X server. This function returns a nonzero status if atoms are returned for all of the names; otherwise, it returns zero. XInternAtoms can generate BadAlloc and BadValue errors. The XGetAtomName function returns the name associated with the specified atom. If the data returned by the server is in the Latin Portable Character Encoding, then the returned string is in the Host Portable Character Encoding. Otherwise, the result is implementation-dependent. To free the resulting string, call XFree. XGetAtomName can generate a BadAtom error. The XGetAtomNames function returns the names associated with the specified atoms. The names are stored in the names_return array supplied by the caller. Calling this function is equivalent to calling XGetAtomName for each of the atoms in turn, but this function minimizes the number of round-trip protocol exchanges between the client and the X server. This function returns a nonzero status if names are returned for all of the atoms; otherwise, it returns zero. XGetAtomNames can generate a BadAtom error.

DIAGNOSTICSBadAlloc  The server failed to allocate the requested resource or server memory. BadAtom  A value for an Atom argument does not name a defined Atom. BadValue  Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error.

SEE ALSOXFree(3), XGetWindowProperty(3)
Xlib − C Language X Interface
0
Johanes Gumabo
Data Size   :   12,434 byte
man-XGetAtomNames.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 201,214
Visitor ID   :     :  
Visitor IP   :   3.17.181.112   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.