Category : C Source Code
Archive   : SDB.ZIP
Filename : SDBERR.C

 
Output of file : SDBERR.C contained in archive : SDB.ZIP
/* SDB - error messages */

#include "sdbio.h"

char *db_ertxt(msg)
int msg;
{
char *txt;

/* select the appropriate message text */
switch (msg) {
case INSMEM:
txt = "insufficient memory";
break;
case RELFNF:
txt = "relation file not found";
break;
case BADHDR:
txt = "bad relation header";
break;
case TUPINP:
txt = "tuple input error";
break;
case TUPOUT:
txt = "tuple output error";
break;
case RELFUL:
txt = "relation file full";
break;
case RELCRE:
txt = "error creating relation file";
break;
case DUPATT:
txt = "duplicate attribute";
break;
case MAXATT:
txt = "too many attributes";
break;
case INSBLK:
txt = "insufficient disk space";
break;
case SYNTAX:
txt = "syntax error";
break;
case ATUNDF:
txt = "undefined attribute";
break;
case ATAMBG:
txt = "ambiguous attribute";
break;
case RLUNDF:
txt = "undefined relation";
break;
case CDSIZE:
txt = "boolean expression too complex";
break;
case INPFNF:
txt = "input file not found";
break;
case OUTCRE:
txt = "error creating output file";
break;
case INDFNF:
txt = "indirect command file not found";
break;
case BADSET:
txt = "bad set parameter";
break;
default:
txt = "undefined error";
break;
}

/* return the message text */
return (txt);
}



  3 Responses to “Category : C Source Code
Archive   : SDB.ZIP
Filename : SDBERR.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/