/*++ /* NAME /* mail_conf_str 3 /* SUMMARY /* string-valued global configuration parameter support /* SYNOPSIS /* #include <mail_conf.h> /* /* char *get_mail_conf_str(name, defval, min, max) /* const char *name; /* const char *defval; /* int min; /* int max; /* /* char *get_mail_conf_str_fn(name, defval, min, max) /* const char *name; /* const char *(*defval)(void); /* int min; /* int max; /* /* void set_mail_conf_str(name, value) /* const char *name; /* const char *value; /* /* void get_mail_conf_str_table(table) /* const CONFIG_STR_TABLE *table; /* /* void get_mail_conf_str_fn_table(table) /* const CONFIG_STR_TABLE *table; /* AUXILIARY FUNCTIONS /* char *get_mail_conf_str2(name, suffix, defval, min, max) /* const char *name; /* const char *suffix; /* const char *defval; /* int min; /* int max; /* /* void check_mail_conf_str(name, strval, min, max) /* const char *name; /* const char *strval; /* int min; /* int max; /* DESCRIPTION /* This module implements support for string-valued global /* configuration parameters. /* /* get_mail_conf_str() looks up the named entry in the global /* configuration dictionary. The default value is returned when /* no value was found. String results should be passed to myfree() /* when no longer needed. \fImin\fR is zero or specifies a lower /* bound on the string length; \fImax\fR is zero or specifies an /* upper limit on the string length. /* /* get_mail_conf_str_fn() is similar but specifies a function that /* provides the default value. The function is called only when /* the default value is used. /* /* set_mail_conf_str() updates the named entry in the global /* configuration dictionary. This has no effect on values that /* have been looked up earlier via the get_mail_conf_XXX() routines. /* /* get_mail_conf_str_table() and get_mail_conf_str_fn_table() read /* lists of variables, as directed by their table arguments. A table /* must be terminated by a null entry. /* /* get_mail_conf_str2() concatenates the two names and is otherwise /* identical to get_mail_conf_str(). /* /* check_mail_conf_str() exits with a fatal run-time error /* when the string does not meet its length requirements. /* DIAGNOSTICS /* Fatal errors: bad string length. /* SEE ALSO /* config(3) generic config parameter support /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.