XrmPermStringToQuark

Syntax

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

XrmQuark XrmPermStringToQuark(string)
     char *string;

Arguments

string Specifies the string for which a quark\*(Ql is to be allocated.

Description

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(), XrmPutResource(), XrmQuarkToString(), XrmStringToBindingQuarkList(), XrmStringToQuark(), XrmStringToQuarkList(), XrmUniqueQuark(), "Quarks".
Christophe Tronche, ch@tronche.com