<< Previous | Next >>

registry_update

int registry_update( char * basename, char far * section, RegistryEntry * re, ServerContext * sctx);

Description

Convenience function for updating a registry with a minimum of fuss. Basically combines the function calls:

   

registry_prep_write()
registry_write()
registry_finish_write()

Parameters

basename
Base name of registry file, as a Zserver resource name. This file must not have an extension, since the extensions ".1", ".2" and so on are appended to the name.

section
Section name to update (may be NULL to update the anonymous section at the start of the registry file).

re
Array of update commands. See the registry_write() function description for details. If this pointer is NULL, the entire section is deleted.

sctx
Server context.

Return Value

<0: general failure, code will be negative of one of the codes in ERRNO.LIB.
 0: OK

Library

register.lib

See Also

registry_prep_write, registry_write, registry_finish_write, registry_get


Dynamic C Functions << Previous | Next >> rabbit.com