/*++ /* NAME /* is_header 3 /* SUMMARY /* message header classification /* SYNOPSIS /* #include <is_header.h> /* /* ssize_t is_header(string) /* const char *string; /* /* ssize_t is_header_buf(string, len) /* const char *string; /* ssize_t len; /* DESCRIPTION /* is_header() examines the given string and returns non-zero (true) /* when it begins with a mail header name + optional space + colon. /* The result is the length of the mail header name. /* /* is_header_buf() is a more elaborate interface for use with strings /* that may not be null terminated. /* STANDARDS /* RFC 822 (ARPA Internet Text Messages) /* 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 <ctype.h>
/* Global library. */
#include"is_header.h"
/* is_header_buf - determine if this can be a header line */
ssize_t is_header_buf(constchar *str, ssize_t str_len)
{ constunsignedchar *cp; int state; int c;
ssize_t len;
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.