rlversion.c revision 157184
147558Sache/* 247558Sache * rlversion -- print out readline's version number 347558Sache */ 447558Sache 5119610Sache/* Copyright (C) 1987-2002 Free Software Foundation, Inc. 6119610Sache 7119610Sache This file is part of the GNU Readline Library, a library for 8119610Sache reading lines of text with interactive input and history editing. 9119610Sache 10119610Sache The GNU Readline Library is free software; you can redistribute it 11119610Sache and/or modify it under the terms of the GNU General Public License 12119610Sache as published by the Free Software Foundation; either version 2, or 13119610Sache (at your option) any later version. 14119610Sache 15119610Sache The GNU Readline Library is distributed in the hope that it will be 16119610Sache useful, but WITHOUT ANY WARRANTY; without even the implied warranty 17119610Sache of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18119610Sache GNU General Public License for more details. 19119610Sache 20119610Sache The GNU General Public License is often shipped with GNU software, and 21119610Sache is generally kept in a file called COPYING or LICENSE. If you do not 22119610Sache have a copy of the license, write to the Free Software Foundation, 23119610Sache 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 24119610Sache 2547558Sache#if defined (HAVE_CONFIG_H) 2647558Sache# include <config.h> 2747558Sache#endif 2847558Sache 2947558Sache#include <stdio.h> 3047558Sache#include <sys/types.h> 3147558Sache#include "posixstat.h" 3247558Sache 33157184Sache#ifdef HAVE_STDLIB_H 34157184Sache# include <stdlib.h> 35157184Sache#else 36157184Sacheextern void exit(); 37157184Sache#endif 38157184Sache 3958310Sache#ifdef READLINE_LIBRARY 4058310Sache# include "readline.h" 4158310Sache#else 4258310Sache# include <readline/readline.h> 4358310Sache#endif 4447558Sache 4547558Sachemain() 4647558Sache{ 4747558Sache printf ("%s\n", rl_library_version ? rl_library_version : "unknown"); 4847558Sache exit (0); 4947558Sache} 50