-/* $NetBSD: mkdict.c,v 1.9 2003/08/07 09:37:06 agc Exp $ */
+/* $NetBSD: mkdict.c,v 1.11 2005/07/01 16:38:24 jmc Exp $ */
/*-
* Copyright (c) 1993
static char sccsid[] = "@(#)mkdict.c 8.1 (Berkeley) 6/11/93";
#else
static const char rcsid[] =
- "$NetBSD: mkdict.c,v 1.9 2003/08/07 09:37:06 agc Exp $";
+ "$NetBSD: mkdict.c,v 1.11 2005/07/01 16:38:24 jmc Exp $";
#endif
#endif /* not lint */
#include "bog.h"
-int main(int, char *[]);
-
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
char *p, *q;
int ch, common, nwords;
}
len = 0;
for (p = buf[current]; *p != '\n'; p++) {
- if (!islower(*p))
+ if (!islower((unsigned char)*p))
break;
if (*p == 'q') {
q = p + 1;