diff options
| author | cgd <cgd@NetBSD.org> | 1993-04-09 11:33:50 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-04-09 11:33:50 +0000 |
| commit | 3b63e56cdf720af3018fe84121fada68b8bc820b (patch) | |
| tree | a3434f76e830640fc0e95969b4066f68ad2f42b1 /usr.bin/patch/version.c | |
| parent | 33508c18735b03ab8a802bbf1ce6db2053b8d21c (diff) | |
patch 2.0.12u8, from prep.ai.mit.edu. this is not under the GPL.
Diffstat (limited to 'usr.bin/patch/version.c')
| -rw-r--r-- | usr.bin/patch/version.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/usr.bin/patch/version.c b/usr.bin/patch/version.c new file mode 100644 index 00000000000..2a6503d33bb --- /dev/null +++ b/usr.bin/patch/version.c @@ -0,0 +1,28 @@ +/* $Header: /cvsroot/src/usr.bin/patch/Attic/version.c,v 1.1 1993/04/09 11:34:12 cgd Exp $ + * + * $Log: version.c,v $ + * Revision 1.1 1993/04/09 11:34:12 cgd + * patch 2.0.12u8, from prep.ai.mit.edu. this is not under the GPL. + * + * Revision 2.0 86/09/17 15:40:11 lwall + * Baseline for netwide release. + * + */ + +#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); +} |
