
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <proto/dos.h>
#include "defines.h"
#include "cus.h"
#include "rev.h"

void giveversioninfo(char *progname)
{
	char *buffer = NULL;
	char *ptr;

	if ((buffer = (char *)malloc(RANGE_12BIT)) == NULL)
		CU2();
	ptr = buffer;
	strupr(progname);
	ptr += sprintf(ptr, "[1m"
						"          ____    _\n"
						"  /  //  / /_ _ _/_\n"
						" (__/(__/ // (_|/\n"
						"               /\n"
						"[0m\n"
						"  the UUCP traffic statistic            R%s.%d (%s)\n"
						"\n"
						"  (c)Copyright 1992 Ralf S. Engelschall, All Rights Reserved.\n"
						"  (c)Copyright 1992 Cyvaned Systems,     All Rights Reserved.\n\n",
						Version, Revision, Date );

	ptr += sprintf(ptr, "    This  material is distributed under the conditions specified\n"
						"  in  the  UUTraf  manual file.  Using this program implies that\n"
						"  you have accepted these licence statements and/or conditions.\n"
						"\n"
						"                                    Ralf S. Engelschall\n"
						"                                    rse@angle.muc.sub.org\n\n" );
	strlwr(progname);
	Write(Output(), buffer, (int)(ptr-buffer));
	CUS:
	if (buffer)
		free(buffer);
	return;
}


void giveusage(char *progname)
{
	printf("Usage: %s [-v] [-?]\n", progname);
	return;
}

