home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
LZW4C12.ZIP
/
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;
}
}