diff options
author | Werner Koch <[email protected]> | 1998-02-11 23:22:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-02-11 23:22:09 +0000 |
commit | bc5789665ae8c9f8fc3d02841cd6c9ade447a12a (patch) | |
tree | a98aa9fdf58eaffecb38ce481606ee8536280fc8 /tools/clean-sat.c | |
parent | a couple of changes; but some parts are now broken (diff) | |
download | gnupg-bc5789665ae8c9f8fc3d02841cd6c9ade447a12a.tar.gz gnupg-bc5789665ae8c9f8fc3d02841cd6c9ade447a12a.zip |
bug fixes
Diffstat (limited to 'tools/clean-sat.c')
-rw-r--r-- | tools/clean-sat.c | 25 |
1 files changed, 25 insertions, 0 deletions
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 <stdio.h> + +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; +} + |