home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
C
/
LZW4C11
/
SAYERROR.C
< prev
next >
Wrap
Text File
|
1992-11-08
|
640b
|
25 lines
/* sayeror.c */
#include <stdio.h>
#include "LZW4C.H"
void SayError(Code)
int Code;
{switch(Code)
{case EXPANSION_ERROR:
puts("\nExpansion Error: Can only expand a previously compressed file");
break;
case CANNOT_ALLOCATE:
puts("\nAllocation Error: Could not allocate sufficient memory");
break;
case INTERNAL_ERROR:
puts("\nInternal Error: LZW4C object code modified !");
break;
case NOT_INITIALIZED:
puts("\nNot Initialized Error: Must run InitLZW() first");
break;
default:
printf("\nUnknown error returned = %d [%xH]\n",Code,Code);
break;
}
}