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