2 * rlversion -- print out readline's version number
5 /* Copyright (C) 1987-2009 Free Software Foundation, Inc.
7 This file is part of the GNU Readline Library (Readline), a library for
8 reading lines of text with interactive input and history editing.
10 Readline is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 Readline is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with Readline. If not, see <http://www.gnu.org/licenses/>.
24 #if defined (HAVE_CONFIG_H)
29 #include <sys/types.h>
30 #include "posixstat.h"
38 #ifdef READLINE_LIBRARY
39 # include "readline.h"
41 # include <readline/readline.h>
46 printf ("%s\n", rl_library_version ? rl_library_version : "unknown");