Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Postfix/src/global/   (Postfix Mailserver Version 3.11©)  Datei vom 7.7.2021 mit Größe 1 kB image not shown  

Quelle  rcpt_print.c

  Sprache: C
 

/*++
/* NAME
/* rcpt_print
/* SUMMARY
/* write RECIPIENT structure to stream
/* SYNOPSIS
/* #include <rcpt_print.h>
/*
/* int     rcpt_print(print_fn, stream, flags, ptr)
/* ATTR_PRINT_COMMON_FN print_fn;
/* VSTREAM *stream;
/* int flags;
/* void *ptr;
/* DESCRIPTION
/* rcpt_print() writes the contents of a RECIPIENT structure
/* to the named stream using the specified attribute print
/* routine. rcpt_print() is meant to be passed as a call-back
/* to attr_print(), thusly:
/*
/* ... SEND_ATTR_FUNC(rcpt_print, (const void *) recipient), ...
/* DIAGNOSTICS
/* Fatal: out of memory.
/* 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
/*
/* Wietse Venema
/* Google, Inc.
/* 111 8th Avenue
/* New York, NY 10011, USA
/*--*/


/* System library. */

#include <sys_defs.h>

/* Utility library. */

#include <attr.h>

/* Global library. */

#include <mail_proto.h>
#include <recipient_list.h>
#include <rcpt_print.h>

/* rcpt_print - write recipient to stream */

int     rcpt_print(ATTR_PRINT_COMMON_FN print_fn, VSTREAM *fp,
             int flags, const void *ptr)
{
    RECIPIENT *rcpt = (RECIPIENT *) ptr;
    int     ret;

    /*
     * The attribute order is determined by backwards compatibility. It can
     * be sanitized after all the ad-hoc recipient read/write code is
     * replaced.
     */

    ret =
 print_fn(fp, flags | ATTR_FLAG_MORE,
   SEND_ATTR_STR(MAIL_ATTR_ORCPT, rcpt->orig_addr),
   SEND_ATTR_STR(MAIL_ATTR_RECIP, rcpt->address),
   SEND_ATTR_LONG(MAIL_ATTR_OFFSET, rcpt->offset),
   SEND_ATTR_STR(MAIL_ATTR_DSN_ORCPT, rcpt->dsn_orcpt),
   SEND_ATTR_INT(MAIL_ATTR_DSN_NOTIFY, rcpt->dsn_notify),
   ATTR_TYPE_END);
    return (ret);
}

Messung V0.5 in Prozent
C=77 H=96 G=86

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-08-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.