Category : C Source Code
Archive   : SQLVER1.ZIP
Filename : SQL.C

 
Output of file : SQL.C contained in archive : SQLVER1.ZIP
#include "C:\LANGUAGE\C\TURBO.C\40.570\DEFS.H"
struct LIST *garbage = NULL;

int jmpvalue;
jmp_buf jumper;

/* */
/****************************************************************************/

int control(void)
{
char ch = NULL;
printf(" Are you sure that you want to break out ?  ");
while((ch != 'Y') && (ch != 'N'))
{
printf("");
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);

}


  3 Responses to “Category : C Source Code
Archive   : SQLVER1.ZIP
Filename : SQL.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. 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/