diff options
Diffstat (limited to 'readline/examples/rlversion.c')
-rw-r--r-- | readline/examples/rlversion.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/readline/examples/rlversion.c b/readline/examples/rlversion.c new file mode 100644 index 0000000..2d73a96 --- /dev/null +++ b/readline/examples/rlversion.c @@ -0,0 +1,21 @@ +/* + * rlversion -- print out readline's version number + */ + +#define READLINE_LIBRARY + +#if defined (HAVE_CONFIG_H) +# include <config.h> +#endif + +#include <stdio.h> +#include <sys/types.h> +#include "posixstat.h" + +#include "readline.h" + +main() +{ + printf ("%s\n", rl_library_version ? rl_library_version : "unknown"); + exit (0); +} |