diff options
author | 1995-10-18 08:37:01 +0000 | |
---|---|---|
committer | 1995-10-18 08:37:01 +0000 | |
commit | df930be708d50e9715f173caa26ffe1b7599b157 (patch) | |
tree | aa317e49e28cb999c9cf3db7f00c20903fe6010a /usr.bin/patch/version.c | |
download | wireguard-openbsd-df930be708d50e9715f173caa26ffe1b7599b157.tar.xz wireguard-openbsd-df930be708d50e9715f173caa26ffe1b7599b157.zip |
initial import of NetBSD tree
Diffstat (limited to 'usr.bin/patch/version.c')
-rw-r--r-- | usr.bin/patch/version.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/usr.bin/patch/version.c b/usr.bin/patch/version.c new file mode 100644 index 00000000000..7a527fdd34d --- /dev/null +++ b/usr.bin/patch/version.c @@ -0,0 +1,21 @@ +#ifndef lint +static char rcsid[] = "$Id: version.c,v 1.1.1.1 1995/10/18 08:45:56 deraadt Exp $"; +#endif /* not lint */ + +#include "EXTERN.h" +#include "common.h" +#include "util.h" +#include "INTERN.h" +#include "patchlevel.h" +#include "version.h" + +void my_exit(); + +/* Print out the version number and die. */ + +void +version() +{ + fprintf(stderr, "Patch version 2.0, patch level %s\n", PATCHLEVEL); + my_exit(0); +} |