XrmUniqueQuark() XrmUniqueQuark()
Name
XrmUniqueQuark - allocate a new quark.
Synopsis
XrmQuark XrmUniqueQuark( )
Returns
The quark.
Description
XrmUniqueQuark() allocates a quark that is guaranteed not to represent any existing string. For most applications, XrmStringToQuark() is
more useful, as it binds a quark to a string. However, on some occasions, you may want to allocate a quark that has no string equivalent.
The shorthand name for a string is called a quark and is the type XrmQuark. Quarks are used to improve performance of the resource man-
ager, which must make many string comparisons. Quarks are presently represented as integers. Simple comparisons of quarks can be per-
formed rather than lengthy string comparisons.
A quark is to a string what an atom is to a property name in the server, but its use is entirely local to your application.
For more information, see Volume One, Chapter 13, Managing User Preferences.
Structures
typedef int XrmQuark;
See Also
XrmDestroyDatabase(), XrmGetFileDatabase(), XrmGetResource(), XrmGetStringDatabase(), XrmInitialize(), XrmMergeDatabases(), XrmParseCom-
mand(), XrmPutFileDatabase(), XrmPutLineResource(), XrmPutResource(), XrmPutStringResource(), XrmQGetResource(), XrmQGetSearchList(),
XrmQGetSearchResource(), XrmQPutResource(), XrmQPutStringResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuark-
List(), XrmStringToQuark().
Xlib - Resource Manager XrmUniqueQuark()