home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
trl14db.zip
/
TRLSRC.EXE
/
TR_LIST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1990-10-22
|
1KB
|
62 lines
/*
* tr_list.c - display function table
*
* by Alastair Dallas, Ralph Davis, Tom Rettig, and Leonard Zerman
*
* Placed in the public domain by Tom Rettig Associates, 10/22/1990.
*
*/
#include "trdbase.h"
extern struct tr_dt tr_vectors[];
extern int numvecs;
tr_list()
{
int i, c;
/* start i at 4 to skip type checking in table */
for (i = 4; i < numvecs; i++)
{
if (kbhit())
{
switch(c = getch())
{
case CTRL_C:
puts("^C\n");
/* fall thru... */
case ESC:
goto terminate;
case CTRL_S: /* pause until next key hit */
c = getch();
break;
default:
break;
} /* switch */
} /* if kbhit */
printf("%-15s: %1d parameter%s %s\n",tr_vectors[i].function,
tr_vectors[i].num_parms, (tr_vectors[i].num_parms != 1 ?
(tr_vectors[i].num_parms > 0 ? "s:" : "s") : ": "),
tr_vectors[i].var_types);
} /* for each function */
printf("\n\n"); /* skip 2 lines at end */
return (0);
terminate:
printf("\n\n"); /* skip 2 lines at end */
return (1);
} /* tr_list */