#define XrmStringToName(string) XrmStringToQuark(string)
#define XrmStringToClass(string) XrmStringToQuark(string)
#define XrmStringToRepresentation(string) XrmStringToQuark(string)

XrmQuark XrmStringToQuark(string)
     char *string;


string Specifies the string for which a quark is to be allocated.


This function can be used to convert from string to quark representation. If the string is not in the Host Portable Character Encoding, the conversion is implementation dependent. The string argument to XrmStringToQuark() need not be permanently allocated storage. XrmPermStringToQuark() is just like XrmStringToQuark(), except that Xlib is permitted to assume the string argument is permanently allocated, and, hence, that it can be used as the value to be returned by XrmQuarkToString().

For any given quark, if XrmStringToQuark() returns a non-NULL value, all future calls will return the same value (identical address).

See also

XrmGetResource(), XrmInitialize(), XrmMergeDatabases(), XrmPermStringToQuark(), XrmPutResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuarkList(), XrmUniqueQuark(), "Quarks".
Christophe Tronche, [email protected]