void XrmPutResource(database, specifier, type, value)
     XrmDatabase *database;
     char *specifier;
     char *type;
     XrmValue *value;


database Specifies the resource database.
specifier Specifies a complete or partial specification of the resource.
type Specifies the type of the resource.
value Specifies the value of the resource, which is specified as a string.


If database contains NULL, XrmPutResource() creates a new database and returns a pointer to it. XrmPutResource() is a convenience function that calls XrmStringToBindingQuarkList() followed by:

XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value)
If the specifier and type are not in the Host Portable Character Encoding, the result is implementation dependent. The value is stored in the database without modification.

See also

XrmGetResource(), XrmInitialize(), XrmMergeDatabases(), XrmPutLineResource(), XrmPutStringResource(), XrmQPutResource(), XrmQPutStringResource(), XrmUniqueQuark(), "Storing Into a Resource Database".
Christophe Tronche, [email protected]