remove unused defines in uip/pick.c
[mmh] / sbr / uprf.c
1 /*
2 ** uprf.c -- "unsigned" lexical prefix
3 **        -- Check if `word' starts with `prefix', caseinsensitively.
4 **
5 ** This code is Copyright (c) 2002, by the authors of nmh.  See the
6 ** COPYRIGHT file in the root directory of the nmh distribution for
7 ** complete copyright information.
8 */
9
10 #include <h/mh.h>
11
12
13 int
14 uprf(char *word, char *prefix)
15 {
16         if (!word || !prefix) {
17                 return 0;
18         }
19         return (strncasecmp(word, prefix, strlen(prefix))==0) ? 1 : 0;
20 }