Category : C Source Code
Archive   : CDBDEV.ZIP
Filename : DS.C
/* Display the data of a file on stdout. Type the filename
* and a list of data element names. The query response is
* sent to the standard output device. If no element list
* is typed, the query uses the format of the file record.
*/
#include
#include "cdata.h"
main(argc, argv)
int argc;
char *argv[];
{
int f, iplist [MXELE+1];
static int fl [] = {0, -1};
extern void dblist();
if (argc > 1) {
if ((f = filename(argv[1])) != ERROR) {
*fl = f;
db_open("", fl);
if (argc == 2)
dblist(stdout, TRUE, f, 1, file_ele [f]);
else if (ellist(argc - 2, argv + 2, iplist) == OK)
dblist(stdout, TRUE, f, 0, iplist);
db_cls();
}
}
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/