Status XInternAtoms(display, names, count, only_if_exists, atoms_return)
Display *display;
char **names;
int count;
Bool only_if_exists;
Atom *atoms_return;
display | Specifies the connection to the X server. |
names | Specifies the array of atom names. |
count | Specifies the number of atom names in the array. |
only_if_exists | Specifies a Boolean value that indicates whether the atom must be created. |
atoms_return | Returns the atoms. |
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.
BadAlloc | The server failed to allocate the requested source or server memory. |
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. |