2 ** uprf.c -- "unsigned" lexical prefix
3 ** -- Check if `word' starts with `prefix', caseinsensitively.
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.
14 uprf(char *word, char *prefix)
16 if (!word || !prefix) {
19 return (strncasecmp(word, prefix, strlen(prefix))==0) ? 1 : 0;