1 /* $OpenBSD: ex_version.c,v 1.10 2014/11/12 04:28:41 bentley 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(SCR *sp, EXCMD *cmdp) 32 { 33 msgq(sp, M_INFO, VI_VERSION); 34 return (0); 35 } 36