1 | /* |
1 | /* |
2 | * Copyright (c) 2000-2002 Marc Alexander Lehmann <pcg@goof.com> |
2 | * Copyright (c) 2000-2003 Marc Alexander Lehmann <pcg@goof.com> |
3 | * |
3 | * |
4 | * Redistribution and use in source and binary forms, with or without modifica- |
4 | * Redistribution and use in source and binary forms, with or without modifica- |
5 | * tion, are permitted provided that the following conditions are met: |
5 | * tion, are permitted provided that the following conditions are met: |
6 | * |
6 | * |
7 | * 1. Redistributions of source code must retain the above copyright notice, |
7 | * 1. Redistributions of source code must retain the above copyright notice, |
… | |
… | |
35 | #include <unistd.h> |
35 | #include <unistd.h> |
36 | #include <getopt.h> |
36 | #include <getopt.h> |
37 | |
37 | |
38 | #include "lzf.h" |
38 | #include "lzf.h" |
39 | |
39 | |
|
|
40 | typedef unsigned char u8; |
|
|
41 | |
40 | static void |
42 | static void |
41 | usage (int ec) |
43 | usage (int ec) |
42 | { |
44 | { |
43 | fprintf (stderr, "\n" |
45 | fprintf (stderr, "\n" |
44 | "lzf, a very leightweight compression/decompression filter\n" |
46 | "lzf, a very lightweight compression/decompression filter\n" |
45 | "written by Marc Lehmann <pcg@goof.com> You can find more info at\n" |
47 | "written by Marc Lehmann <pcg@goof.com> You can find more info at\n" |
46 | "http://liblzv.plan9.de/\n" |
48 | "http://liblzf.plan9.de/\n" |
47 | "\n" |
49 | "\n" |
48 | "USAGE: lzf -c [-b blocksize] | -d\n" |
50 | "USAGE: lzf -c [-b blocksize] | -d\n" |
49 | " -c compress\n" |
51 | " -c compress\n" |
50 | " -d decompress\n" |
52 | " -d decompress\n" |
51 | " -b specify the blocksize (default 64k-1)\n" |
53 | " -b specify the blocksize (default 64k-1)\n" |