]>
diplodocus.org Git - nmh/blob - sbr/uprf.c
3 * uprf.c -- "unsigned" lexical prefix
7 * This code is Copyright (c) 2002, by the authors of nmh. See the
8 * COPYRIGHT file in the root directory of the nmh distribution for
9 * complete copyright information.
19 uprf (char *c1
, char *c2
)
31 c
= (isalpha(c
) && isupper(c
)) ? tolower(c
) : c
;
32 mask
= (isalpha(mask
) && isupper(mask
)) ? tolower(mask
) : mask
;
35 mask
= (isalpha(c
) && isalpha(*c1
)) ? TO_LOWER
: NO_MASK
;
36 if ((c
| mask
) != (*c1
| mask
))