[BACK]Return to version.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

Annotation of src/usr.bin/mg/version.c, Revision 1.10

1.10    ! bcallah     1: /*     $OpenBSD: version.c,v 1.9 2005/06/14 18:14:40 kjell Exp $       */
1.9       kjell       2:
                      3: /* This file is in the public domain. */
1.4       niklas      4:
1.1       deraadt     5: /*
1.8       db          6:  * This file contains the string that gets written
1.1       deraadt     7:  * out by the emacs-version command.
                      8:  */
1.10    ! bcallah     9:
        !            10: #include <sys/queue.h>
        !            11: #include <signal.h>
        !            12: #include <stdio.h>
1.1       deraadt    13:
1.3       millert    14: #include "def.h"
1.1       deraadt    15:
1.5       mickey     16: const char     version[] = "Mg 2a";
1.1       deraadt    17:
                     18: /*
                     19:  * Display the version. All this does
                     20:  * is copy the version string onto the echo line.
                     21:  */
1.2       millert    22: /* ARGSUSED */
1.3       millert    23: int
1.6       cloder     24: showversion(int f, int n)
1.1       deraadt    25: {
1.7       art        26:        ewprintf("%s", version);
1.8       db         27:        return (TRUE);
1.1       deraadt    28: }