1
/* this is from elm 2.4 so: */
3
/*******************************************************************************
4
* Copyright (c) 1988-1992 USENET Community Trust
5
* Copyright (c) 1986,1987 Dave Taylor
6
********************************************************************************/
10
compare a header, ignoring case and allowing linear white space
11
around the :. Header must be anchored to the start of the line.
13
returns NULL if no match, or first character after trailing linear
22
#define whitespace(c) (c == ' ' || c == '\t')
29
char *header_cmp(header, prefix, suffix)
36
len = NEWstrlen(prefix);
37
if (strincmp(header, prefix, len))
40
/* skip over while space if any */
43
if (*header != ':') /* headers must end in a : */
46
/* skip over while space if any */
51
if (!whitespace(*header))
58
len = NEWstrlen(suffix);
60
if (strincmp(header, suffix, len))