/***************************************************************************** * rand : write a randomization of files or stdin or parms to stdout * Usage: * blah | rand [-lw] [-o output file] * rand [-lw] -f [-o output file] * * Copyright (C) 1998-2004 Erik Greenwald * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * ******************************************************************************/ /* * $Id: help.c,v 1.13 2004/02/18 21:39:03 erik Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #ifdef ENABLE_NLS # include #endif #include "help.h" /** Print version and help info to stdout. * @param void This funtion takes no parameters * @return This function returns void. */ void show_help () { fprintf (stdout, gettext ("\ %s %s (C) 1998-2004 Erik Greenwald \n\ %s comes with ABSOLUTELY NO WARRANTY. Please read the GPL for details.\n\ \n\ Usage:\n\ \t | %s [-lw] [-o ]\n\ \t%s [-lwvh] [-f ] [-o ] [-s ]\n\ \n\ "), PACKAGE, VERSION, PACKAGE, PACKAGE, PACKAGE); fprintf (stdout, gettext (" -l\t\tDisplay lines in random order\n -w\t\tDisplay words in random order\n\n")); } /** * Print the version to stdout. * @param void This funtion takes no parameters * @return This function returns void. */ void show_version () { fprintf (stdout, gettext ("%s %s (C) 1998-2004 Erik Greenwald \n"), PACKAGE, VERSION); }