home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
b
/
bmh02src.zip
/
HELP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-08-17
|
882b
|
41 lines
/*
help.c : Copyright Paul Healy, EI9GL, 1992.
920708 : Created.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "help.h"
static char Version[]="0.2";
void
version(void)
{
fprintf(stderr, "Version: %s\n", Version);
fprintf(stderr, "%s\n%s\n%s\n%s",
"Copyright 1992 Paul Healy EI9GL, permission granted for non-commercial use.",
"bmh is derived from bm, which is copyright:",
"Copyright 1987 Bdale Garbee, permission granted for non-commercial use.",
"Copyright 1988 Dave Trulli NN2Z, permission granted for non-commercial use.");
}
static void
help(char *usage)
{
fprintf(stderr, "Usage: %s \n\n", usage);
version();
exit(0);
}
void
dohelp(int argc, char *argv[], char *usage)
{
int i;
for (i=1; i<argc; i++)
if (strcmp("-help", argv[i]) == 0)
help(usage);
}