Commit | Line | Data |
---|---|---|
c862e87b JM |
1 | /* |
2 | * rlversion -- print out readline's version number | |
3 | */ | |
4 | ||
c862e87b JM |
5 | #if defined (HAVE_CONFIG_H) |
6 | # include <config.h> | |
7 | #endif | |
8 | ||
9 | #include <stdio.h> | |
10 | #include <sys/types.h> | |
11 | #include "posixstat.h" | |
12 | ||
1b17e766 EZ |
13 | #ifdef READLINE_LIBRARY |
14 | # include "readline.h" | |
15 | #else | |
16 | # include <readline/readline.h> | |
17 | #endif | |
c862e87b JM |
18 | |
19 | main() | |
20 | { | |
21 | printf ("%s\n", rl_library_version ? rl_library_version : "unknown"); | |
22 | exit (0); | |
23 | } |