Category : C Source Code
Archive   : SQLVER1.ZIP
Filename : SQL.C
Output of file : SQL.C contained in archive : SQLVER1.ZIP
struct LIST *garbage = NULL;
int jmpvalue;
jmp_buf jumper;
/* */
/****************************************************************************/
int control(void)
{
char ch = NULL;
printf("[12;19H[1;37;41m Are you sure that you want to break out ? [1;36;44m[K ");
while((ch != 'Y') && (ch != 'N'))
{
printf("[12;62H[K");
ch = toupper(getche( ));
}
if (ch == 'N') longjmp(jumper,1);
cls( );
return(0);
}
/* */
/****************************************************************************/
int main(argc,argv)
int argc;
char *argv[];
{
char commandline[128] = "";
int commandfile = 0,
error = 0;
if ((argc == 2) && ((commandfile = open(argv[1],O_RDONLY)) != 0))
{
dup2(commandfile,0);
close(commandfile);
while((error = parse(commandline,1)) != 5)
{
if (error < 0) printerror(error);
if (eof(commandfile) == 0) break;
}
return(0);
}
jmpvalue = setjmp(jumper);
ctrlbrk(control);
cls( );
printf("\n\n\t\t Today is ");
pdate( );
while((error = parse(commandline,0)) != 5) if (error < 0) printerror(error);
cls( );
return(0);
}
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/