From bc5789665ae8c9f8fc3d02841cd6c9ade447a12a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 11 Feb 1998 23:22:09 +0000 Subject: bug fixes --- tools/clean-sat.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tools/clean-sat.c (limited to 'tools/clean-sat.c') diff --git a/tools/clean-sat.c b/tools/clean-sat.c new file mode 100644 index 000000000..a4f88e55f --- /dev/null +++ b/tools/clean-sat.c @@ -0,0 +1,25 @@ +/* clean-sat.c + */ + +#include + +int +main(int argc, char **argv) +{ + int c, c2; + + if( argc > 1 ) { + fprintf(stderr, "no arguments, please\n"); + return 1; + } + + while( (c=getchar()) == '\n' ) + ; + while( c != EOF ) { + putchar(c); + c = getchar(); + } + + return 0; +} + -- cgit v1.2.3