File: rlversion.c

package info (click to toggle)
readline4 4.2a-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,732 kB
  • ctags: 2,379
  • sloc: ansic: 16,932; perl: 4,105; sh: 3,648; makefile: 1,163
file content (23 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * rlversion -- print out readline's version number
 */

#if defined (HAVE_CONFIG_H)
#  include <config.h>
#endif

#include <stdio.h>
#include <sys/types.h>
#include "posixstat.h"

#ifdef READLINE_LIBRARY
#  include "readline.h"
#else
#  include <readline/readline.h>
#endif

main()
{
	printf ("%s\n", rl_library_version ? rl_library_version : "unknown");
	exit (0);
}