Category : C Source Code
Archive   : BLKADE20.ZIP
Filename : BLKADE1.C

 
Output of file : BLKADE1.C contained in archive : BLKADE20.ZIP
/* ------------------------------------------------------------------- */
/* Copyright (C) 1990-91 Indusoft Corp. */
/* All rights reserved */
/* PO Box 26747 Greenville, SC 29616 */
/* */
/*---------------------------------------------------------------------*/
/* Contains messages corresponding to the error codes returned */
/* by blockade() & calc_crc_file(). */
/* */
/* Returns a read only pointer to the appropriate message. */
/* */
/* */
/*---------------------------------------------------------------------*/

char * get_blk_err_msg(int num)
{
char *sp;
static char *blk_err_msgs[] = {
"No error", /* 0 */
"No memory for buffer", /* 1 */
"Error opening file", /* 2 */
"No memory for file buffering",
"File buffering failure", /* 4 */
"Fseek error",
"Error reading data block", /* 6 */
"Invalid data block info",
"Error reading file", /* 8 */
"Error reading file", /* 9 */
"Error reading file", /* 10 */
"Check Value error", /* 11 */
"File size error", /* 12 */
"Invalid error number" }; /* 13 */

if (num == -1) num = 11;
if (num == -2) num = 12;
if ((num < 0) || (num > 12)) num = 13; /* out of range */
sp = blk_err_msgs[num];
return(sp);
}

/* ------------------------------------------------------------------- */
/* Copyright (C) 1990-91 Indusoft Corp. */

/* All rights reserved */
/* PO Box 26747 Greenville, SC 29616 */
/* */
/*---------------------------------------------------------------------*/


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