freebsd-skq/gnu/usr.bin/patch/version.c
Garance A Drosehn 38a1326cad Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it gets
our patch to look a little more like NetBSD's, and has the nice characteristic
that the object code is exactly the same after the change as before it (even in
patch.c and pch.c, which have pesky 'assert' statements in them).

Reviewed by:	/sbin/md5 on i386, alpha, sparc64
MFC after:	3 days
2002-04-28 01:33:45 +00:00

26 lines
435 B
C

/* $FreeBSD$
*
* $Log: version.c,v $
* 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(int _status); /* in patch.c */
/* Print out the version number and die. */
void
version(void)
{
fprintf(stderr, "Patch version %s\n", PATCH_VERSION);
my_exit(0);
}