-
-/*
- * smatch.c -- match a switch (option)
+/* smatch.c -- match a switch (option)
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
int
-smatch(char *string, struct swit *swp)
+smatch(const char *string, const struct swit *swp)
{
- char *sp, *tcp;
+ const char *sp, *tcp;
int firstone, len;
- struct swit *tp;
+ const struct swit *tp;
firstone = UNKWNSW;
firstone = AMBIGSW;
}
- return (firstone);
+ return firstone;
}