xref: /openbsd-src/usr.bin/vi/ex/ex_version.c (revision 91f110e064cd7c194e59e019b83bb7496c1c84d4)
1 /*	$OpenBSD: ex_version.c,v 1.9 2009/10/27 23:59:47 deraadt Exp $	*/
2 
3 /*-
4  * Copyright (c) 1991, 1993, 1994
5  *	The Regents of the University of California.  All rights reserved.
6  * Copyright (c) 1991, 1993, 1994, 1995, 1996
7  *	Keith Bostic.  All rights reserved.
8  *
9  * See the LICENSE file for redistribution information.
10  */
11 
12 #include "config.h"
13 
14 #include <sys/types.h>
15 #include <sys/queue.h>
16 
17 #include <bitstring.h>
18 #include <limits.h>
19 #include <stdio.h>
20 
21 #include "../common/common.h"
22 #include "version.h"
23 
24 /*
25  * ex_version -- :version
26  *	Display the program version.
27  *
28  * PUBLIC: int ex_version(SCR *, EXCMD *);
29  */
30 int
31 ex_version(sp, cmdp)
32 	SCR *sp;
33 	EXCMD *cmdp;
34 {
35 	msgq(sp, M_INFO, VI_VERSION);
36 	return (0);
37 }
38