11acd27e7Smillert /*
21acd27e7Smillert  * rlversion -- print out readline's version number
31acd27e7Smillert  */
41acd27e7Smillert 
5*15b117eaSkettenis /* Copyright (C) 1987-2002 Free Software Foundation, Inc.
6*15b117eaSkettenis 
7*15b117eaSkettenis    This file is part of the GNU Readline Library, a library for
8*15b117eaSkettenis    reading lines of text with interactive input and history editing.
9*15b117eaSkettenis 
10*15b117eaSkettenis    The GNU Readline Library is free software; you can redistribute it
11*15b117eaSkettenis    and/or modify it under the terms of the GNU General Public License
12*15b117eaSkettenis    as published by the Free Software Foundation; either version 2, or
13*15b117eaSkettenis    (at your option) any later version.
14*15b117eaSkettenis 
15*15b117eaSkettenis    The GNU Readline Library is distributed in the hope that it will be
16*15b117eaSkettenis    useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17*15b117eaSkettenis    of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*15b117eaSkettenis    GNU General Public License for more details.
19*15b117eaSkettenis 
20*15b117eaSkettenis    The GNU General Public License is often shipped with GNU software, and
21*15b117eaSkettenis    is generally kept in a file called COPYING or LICENSE.  If you do not
22*15b117eaSkettenis    have a copy of the license, write to the Free Software Foundation,
23*15b117eaSkettenis    59 Temple Place, Suite 330, Boston, MA 02111 USA. */
24*15b117eaSkettenis 
251acd27e7Smillert #if defined (HAVE_CONFIG_H)
261acd27e7Smillert #  include <config.h>
271acd27e7Smillert #endif
281acd27e7Smillert 
291acd27e7Smillert #include <stdio.h>
301acd27e7Smillert #include <sys/types.h>
311acd27e7Smillert #include "posixstat.h"
321acd27e7Smillert 
331acd27e7Smillert #ifdef READLINE_LIBRARY
341acd27e7Smillert #  include "readline.h"
351acd27e7Smillert #else
361acd27e7Smillert #  include <readline/readline.h>
371acd27e7Smillert #endif
381acd27e7Smillert 
main()391acd27e7Smillert main()
401acd27e7Smillert {
411acd27e7Smillert 	printf ("%s\n", rl_library_version ? rl_library_version : "unknown");
421acd27e7Smillert 	exit (0);
431acd27e7Smillert }
44