/* * Copyright IBM Corporation. 2007 * * Authors: Dhaval Giani * Balbir Singh * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2.1 of the GNU Lesser General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it would be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * Code initiated and designed by Dhaval Giani. All faults are most likely * his mistake. */ #include #include #include #include #include #include int main(int argc, char *argv[]) { int c; char filename[PATH_MAX]; int ret; if (argc < 2) { fprintf(stderr, "usage is %s