/*++ /* NAME /* fold_addr 3 /* SUMMARY /* address case folding /* SYNOPSIS /* #include <fold_addr.h> /* /* char *fold_addr(result, addr, flags) /* VSTRING *result; /* const char *addr; /* int flags; /* DESCRIPTION /* fold_addr() case folds an address according to the options /* specified with \fIflags\fR. The result value is the output /* address. /* /* Arguments /* .IP result /* Result buffer with the output address. Note: casefolding /* may change the string length. /* .IP addr /* Null-terminated read-only string with the input address. /* .IP flags /* Zero or the bit-wise OR of: /* .RS /* .IP FOLD_ADDR_USER /* Case fold the address local part. /* .IP FOLD_ADDR_HOST /* Case fold the address domain part. /* .IP FOLD_ADDR_ALL /* Alias for (FOLD_ADDR_USER | FOLD_ADDR_HOST). /* .RE /* SEE ALSO /* msg(3) diagnostics interface /* casefold(3) casefold text /* DIAGNOSTICS /* Fatal errors: memory allocation problem. /* 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
/*--*/
/* System library. */
#include <sys_defs.h> #include <string.h>
/* Utility library. */
#include <stringops.h>
/* Global library. */
#include <fold_addr.h>
#define STR(x) vstring_str(x)
/* fold_addr - case fold mail address */
char *fold_addr(VSTRING *result, constchar *addr, int flags)
{ char *cp;
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.