FreeBSD/contrib/ntp/libntp/ntp_libopts.c
/*
 * ntpOptionPrintVersion() replaces the stock optionPrintVersion() via
 * version-proc = ntpOptionPrintVersion; in copyright.def.  It differs
 * from the stock function by displaying the complete version string,
 * including compile time which was unknown when Autogen ran.
 *
 * Like optionPrintVersion() this function must exit(0) rather than
 * return.
 */
ntpOptionPrintVersion() replaces the stock optionPrintVersion() via
version-proc = ntpOptionPrintVersion; in copyright.def.  It differs
from the stock function by displaying the complete version string,
including compile time which was unknown when Autogen ran.

Like optionPrintVersion() this function must exit(0) rather than
return.
ntpOptionPrintVersion () replaces the stock optionPrintVersion () via version - proc = ntpOptionPrintVersion ; in copyright . def . It differs from the stock function by displaying the complete version string including compile time which was unknown when Autogen ran . Like optionPrintVersion () this function must exit ( 0 ) rather than return .
void
ntpOptionPrintVersion(
	tOptions *	pOpts,
	tOptDesc *	pOD
	)
{
	UNUSED_ARG(pOpts);
	UNUSED_ARG(pOD);
	printf("%s\n", Version);
	fflush(stdout);
	exit(EXIT_SUCCESS);
}
void ntpOptionPrintVersion ( tOptions * pOpts , tOptDesc * pOD ) { UNUSED_ARG ( pOpts ) ; UNUSED_ARG ( pOD ) ; printf ( " \n " , Version ) ; fflush ( stdout ) ; exit ( EXIT_SUCCESS ) ; }
ntpOptionPrintVersion() replaces the stock optionPrintVersion() via
 version-proc = ntpOptionPrintVersion; in copyright.def.
ntpOptionPrintVersion () replaces the stock optionPrintVersion () via version - proc = ntpOptionPrintVersion ; in copyright . def .