xref: /freebsd/contrib/nvi/ex/ex_version.c (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
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 #include <sys/types.h>
13 #include <sys/queue.h>
14 #include <sys/time.h>
15 
16 #include <bitstring.h>
17 #include <limits.h>
18 #include <stdio.h>
19 
20 #include "../common/common.h"
21 #include "version.h"
22 
23 /*
24  * ex_version -- :version
25  *	Display the program version.
26  *
27  * PUBLIC: int ex_version(SCR *, EXCMD *);
28  */
29 int
30 ex_version(SCR *sp, EXCMD *cmdp)
31 {
32 	msgq(sp, M_INFO, "Version "VI_VERSION
33 			 " The CSRG, University of California, Berkeley.");
34 	return (0);
35 }
36