xref: /openbsd-src/usr.bin/mg/version.c (revision 5b133f3f277e80f096764111e64f3a1284acb179)
1 /*	$OpenBSD: version.c,v 1.11 2023/03/08 04:43:11 guenther Exp $	*/
2 
3 /* This file is in the public domain. */
4 
5 /*
6  * This file contains the string that gets written
7  * out by the emacs-version command.
8  */
9 
10 #include <sys/queue.h>
11 #include <signal.h>
12 #include <stdio.h>
13 
14 #include "def.h"
15 
16 const char	version[] = "Mg 2a";
17 
18 /*
19  * Display the version. All this does
20  * is copy the version string onto the echo line.
21  */
22 int
showversion(int f,int n)23 showversion(int f, int n)
24 {
25 	ewprintf("%s", version);
26 	return (TRUE);
27 }
28