xref: /freebsd/contrib/nvi/ex/ex_version.c (revision 39beb93c)
1 /*-
2  * Copyright (c) 1991, 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  * Copyright (c) 1991, 1993, 1994, 1995, 1996
5  *	Keith Bostic.  All rights reserved.
6  *
7  * See the LICENSE file for redistribution information.
8  */
9 
10 #include "config.h"
11 
12 #ifndef lint
13 static const char sccsid[] = "@(#)ex_version.c	10.31 (Berkeley) 8/22/96";
14 #endif /* not lint */
15 
16 #include <sys/types.h>
17 #include <sys/queue.h>
18 
19 #include <bitstring.h>
20 #include <limits.h>
21 #include <stdio.h>
22 
23 #include "../common/common.h"
24 #include "version.h"
25 
26 /*
27  * ex_version -- :version
28  *	Display the program version.
29  *
30  * PUBLIC: int ex_version __P((SCR *, EXCMD *));
31  */
32 int
33 ex_version(sp, cmdp)
34 	SCR *sp;
35 	EXCMD *cmdp;
36 {
37 	msgq(sp, M_INFO, VI_VERSION);
38 	return (0);
39 }
40