static char SccsId
[] = "@(#)matchhdr.c 2.1 11/5/80";
** MATCHHDR -- Match header line
** Matches a header line in arpanet format (case and white
** This routine is used by arpa-mailer and delivermail.
** line -- the line to match against.
** pat -- the pattern to match against; must be in
** address of the 'value' of the pattern (the beginning
** of the non-white string following the delim).
** It doesn't handle folded lines.
for (q
= pat
, p
= line
; *q
!= '\0'; p
++, q
++)
return (*p
== '\0' ? NULL
: p
);
** LOWER -- Convert a character to lower case
** If the argument is an upper case letter, it is converted
** to a lower case letter, otherwise it is passed through
** c -- the character to check.
** c converted to lower case.