perl: fix -Wformat-security warning in ENDMESSAGE()
[nvi.git] / ex / ex_version.c
blob5fbda024c0de1759554f3f884b8b5c9b71fffeac
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.
7 * See the LICENSE file for redistribution information.
8 */
10 #include "config.h"
12 #ifndef lint
13 static const char sccsid[] = "$Id: ex_version.c,v 10.32 2001/06/25 15:19:22 skimo Exp $ (Berkeley) $Date: 2001/06/25 15:19:22 $";
14 #endif /* not lint */
16 #include <sys/types.h>
17 #include <sys/queue.h>
19 #include <bitstring.h>
20 #include <limits.h>
21 #include <stdio.h>
23 #include "../common/common.h"
24 #include "version.h"
27 * ex_version -- :version
28 * Display the program version.
30 * PUBLIC: int ex_version __P((SCR *, EXCMD *));
32 int
33 ex_version(SCR *sp, EXCMD *cmdp)
35 msgq(sp, M_INFO, "Version "VI_VERSION
36 " The CSRG, University of California, Berkeley.");
37 return (0);