*
* by Eric S. Raymond <esr@snark.thyrsus.com>, July 10 1990
*
- * Note: this code will not run unaltered on Berkeley UNIXes that don't have
- * a System V compatibility suite. If this bothers you, get a real UNIX.
+ * version 2.0, November 15 1993 -- strict ANSI/POSIX conformance.
*/
+#define _POSIX_SOURCE
+
#include <unistd.h>
#include <stdio.h>
#include <ctype.h>
/*
* The VIS class is intended to include all printables except the string quote.
- * EBCDIC sites can eat flaming death, thank you. Have a nice day.
+ * EBCDIC sites can eat flaming death, thank you. Have a nice day.
*/
%}
VIS [!#-~ ]
* is an interesting question in design
* philosophy...
*/
- return(minlength && (strlen(str) - 2 < minlength));
+ return(minlength && ((int)strlen(str) - 2 < minlength));
}
void cstrfilt(ifp, ofp)