home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
misc
/
volume6
/
lookup.c++
/
testhelp.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-03-04
|
341 b
|
20 lines
#include <stream.h>
#include "lookup.h"
extern entry list[];
int help(const char *s)
{
entry *t = list;
(void) s; // "use" s so that CC won't complain
cout << "Available commands:\n\n";
cout << "quit\t";
for(int max=1+int((t++)->name); t-list < max; t++)
cout << form("%s\t", t->name);
cout.put('\n');
return 0;
}