<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://fileformats.archiveteam.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=PAK_%28Resident_Evil_1997%29</id>
		<title>PAK (Resident Evil 1997) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://fileformats.archiveteam.org/index.php?action=history&amp;feed=atom&amp;title=PAK_%28Resident_Evil_1997%29"/>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;action=history"/>
		<updated>2026-05-10T22:22:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.2</generator>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44991&amp;oldid=prev</id>
		<title>Jsummers: Jsummers moved page .PAK (Resident Evil 1997) to PAK (Resident Evil 1997)</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44991&amp;oldid=prev"/>
				<updated>2023-08-27T16:01:14Z</updated>
		
		<summary type="html">&lt;p&gt;Jsummers moved page &lt;a href=&quot;/wiki/.PAK_(Resident_Evil_1997)&quot; class=&quot;mw-redirect&quot; title=&quot;.PAK (Resident Evil 1997)&quot;&gt;.PAK (Resident Evil 1997)&lt;/a&gt; to &lt;a href=&quot;/wiki/PAK_(Resident_Evil_1997)&quot; title=&quot;PAK (Resident Evil 1997)&quot;&gt;PAK (Resident Evil 1997)&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:01, 27 August 2023&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jsummers</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44921&amp;oldid=prev</id>
		<title>Foxtrot at 14:32, 25 August 2023</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44921&amp;oldid=prev"/>
				<updated>2023-08-25T14:32:40Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:32, 25 August 2023&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 200:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 200:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Resident Evil (1997)]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Foxtrot</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44919&amp;oldid=prev</id>
		<title>Foxtrot at 14:26, 25 August 2023</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44919&amp;oldid=prev"/>
				<updated>2023-08-25T14:26:56Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:26, 25 August 2023&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{FormatInfo&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;|formattype=electronic&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;|extensions={{ext|pak}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Restored|2016-12-22|https://web.archive.org/web/20161222090005/http://rewiki.regengedanken.de/wiki/.PAK_(Resident_Evil)}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Restored|2016-12-22|https://web.archive.org/web/20161222090005/http://rewiki.regengedanken.de/wiki/.PAK_(Resident_Evil)}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Foxtrot</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44917&amp;oldid=prev</id>
		<title>Foxtrot at 14:23, 25 August 2023</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44917&amp;oldid=prev"/>
				<updated>2023-08-25T14:23:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:23, 25 August 2023&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Restored|2016-12-22|https://web.archive.org/web/20161222090005/http://rewiki.regengedanken.de/wiki/.PAK_(Resident_Evil)}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The .PAK file format is used by the PC version of Resident Evil (1997). It contains a compressed TIM image, using an algorithm similar to LZW.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;The .PAK file format is used by the PC version of Resident Evil (1997). It contains a compressed TIM image, using an algorithm similar to LZW.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Foxtrot</name></author>	</entry>

	<entry>
		<id>http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44914&amp;oldid=prev</id>
		<title>Foxtrot: Created page with &quot;The .PAK file format is used by the PC version of Resident Evil (1997). It contains a compressed TIM image, using an algorithm similar to LZW.  == Structure == The file is a b...&quot;</title>
		<link rel="alternate" type="text/html" href="http://fileformats.archiveteam.org/index.php?title=PAK_(Resident_Evil_1997)&amp;diff=44914&amp;oldid=prev"/>
				<updated>2023-08-25T14:22:35Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;The .PAK file format is used by the PC version of Resident Evil (1997). It contains a compressed TIM image, using an algorithm similar to LZW.  == Structure == The file is a b...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The .PAK file format is used by the PC version of Resident Evil (1997). It contains a compressed TIM image, using an algorithm similar to LZW.&lt;br /&gt;
&lt;br /&gt;
== Structure ==&lt;br /&gt;
The file is a bitstream, without any header.&lt;br /&gt;
&lt;br /&gt;
== Example decompression routine ==&lt;br /&gt;
This source is partly based on LZW decoder from scummvm engine.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
#include &amp;lt;fcntl.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
unsigned char dstPointer[512&amp;lt;&amp;lt;10];&lt;br /&gt;
int dstOffset;&lt;br /&gt;
unsigned long dstLength;&lt;br /&gt;
&lt;br /&gt;
unsigned char *srcPointer;&lt;br /&gt;
int srcOffset;&lt;br /&gt;
unsigned char srcByte;&lt;br /&gt;
int tmpMask;&lt;br /&gt;
&lt;br /&gt;
#define MAX_LENGTH 35024&lt;br /&gt;
&lt;br /&gt;
typedef struct {&lt;br /&gt;
	long flag;&lt;br /&gt;
	long index;&lt;br /&gt;
	long value;	&lt;br /&gt;
} re1_pack_t;&lt;br /&gt;
&lt;br /&gt;
re1_pack_t tmpArray2[MAX_LENGTH];&lt;br /&gt;
unsigned char decodeStack[MAX_LENGTH];&lt;br /&gt;
&lt;br /&gt;
/* Load file in mem from filename, return buffer, update length */&lt;br /&gt;
&lt;br /&gt;
char *loadFile(char *filename, int *length)&lt;br /&gt;
{&lt;br /&gt;
	int handle;&lt;br /&gt;
	char *buffer;&lt;br /&gt;
&lt;br /&gt;
	/* Load file */&lt;br /&gt;
	handle = open(filename, O_RDONLY);&lt;br /&gt;
	if (handle&amp;lt;0) {&lt;br /&gt;
		fprintf(stderr, &amp;quot;Unable to open %s\n&amp;quot;, filename);	&lt;br /&gt;
		return NULL;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	*length = lseek(handle, 0, SEEK_END);&lt;br /&gt;
	lseek(handle, 0, SEEK_SET); 	&lt;br /&gt;
&lt;br /&gt;
	buffer = (char *)malloc(*length);&lt;br /&gt;
	if (buffer==NULL) {&lt;br /&gt;
		fprintf(stderr, &amp;quot;Unable to allocate %d bytes\n&amp;quot;, length);&lt;br /&gt;
		return NULL;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	read(handle, buffer, *length);&lt;br /&gt;
	close(handle);&lt;br /&gt;
&lt;br /&gt;
	return buffer;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int re1_read_bits(int num_bits)&lt;br /&gt;
{&lt;br /&gt;
	unsigned long value=0, mask;&lt;br /&gt;
&lt;br /&gt;
	mask = 1&amp;lt;&amp;lt;(--num_bits);&lt;br /&gt;
&lt;br /&gt;
	while (mask&amp;gt;0) {&lt;br /&gt;
		if (tmpMask == 0x80) {&lt;br /&gt;
			srcByte = srcPointer[srcOffset++];&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		if ((tmpMask &amp;amp; srcByte)!=0) {&lt;br /&gt;
			value |= mask;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		tmpMask &amp;gt;&amp;gt;= 1;&lt;br /&gt;
		mask &amp;gt;&amp;gt;= 1;&lt;br /&gt;
&lt;br /&gt;
		if (tmpMask == 0) {&lt;br /&gt;
			tmpMask = 0x80;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	return value;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int decodeString(int decodeStackOffset, unsigned long code)&lt;br /&gt;
{&lt;br /&gt;
	int i;&lt;br /&gt;
&lt;br /&gt;
	for (i=0; code&amp;gt;255; ) {&lt;br /&gt;
		decodeStack[decodeStackOffset++] = tmpArray2[code].value;&lt;br /&gt;
		code = tmpArray2[code].index;&lt;br /&gt;
		i++;&lt;br /&gt;
	}&lt;br /&gt;
	decodeStack[decodeStackOffset] = code;&lt;br /&gt;
&lt;br /&gt;
	return decodeStackOffset;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void re1_depack(unsigned char *src, int src_length)&lt;br /&gt;
{&lt;br /&gt;
	int num_bits_to_read, i;&lt;br /&gt;
	int lzwnew, c, lzwold, lzwnext;&lt;br /&gt;
&lt;br /&gt;
	srcPointer = src;&lt;br /&gt;
	srcOffset = 0;&lt;br /&gt;
	tmpMask = 0x80;&lt;br /&gt;
	srcByte = 0;	&lt;br /&gt;
	dstOffset = 0;&lt;br /&gt;
&lt;br /&gt;
	memset(tmpArray2, 0, sizeof(tmpArray2));&lt;br /&gt;
&lt;br /&gt;
	for(;;) {&lt;br /&gt;
		for (i=0; i&amp;lt;MAX_LENGTH; i++) {&lt;br /&gt;
			tmpArray2[i].flag = 0xffffffff;&lt;br /&gt;
		}&lt;br /&gt;
		lzwnext = 0x103;&lt;br /&gt;
		num_bits_to_read = 9;&lt;br /&gt;
&lt;br /&gt;
		c = lzwold = re1_read_bits(num_bits_to_read);&lt;br /&gt;
&lt;br /&gt;
		if (lzwold == 0x100) {&lt;br /&gt;
			break;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
		dstPointer[dstOffset++] = c;&lt;br /&gt;
&lt;br /&gt;
		for(;;) {&lt;br /&gt;
			lzwnew = re1_read_bits(num_bits_to_read);&lt;br /&gt;
&lt;br /&gt;
			if (lzwnew == 0x100) {&lt;br /&gt;
				dstLength = dstOffset;&lt;br /&gt;
				return;&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			if (lzwnew == 0x102) {&lt;br /&gt;
				break;&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			if (lzwnew == 0x101) {&lt;br /&gt;
				num_bits_to_read++;&lt;br /&gt;
				continue;&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			if (lzwnew &amp;gt;= lzwnext) {&lt;br /&gt;
				decodeStack[0] = c;&lt;br /&gt;
				i = decodeString(1, lzwold);&lt;br /&gt;
			} else {&lt;br /&gt;
				i = decodeString(0, lzwnew);&lt;br /&gt;
			}	&lt;br /&gt;
&lt;br /&gt;
			c = decodeStack[i];&lt;br /&gt;
&lt;br /&gt;
			while (i&amp;gt;=0) {&lt;br /&gt;
				dstPointer[dstOffset++] = decodeStack[i--];&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			tmpArray2[lzwnext].index = lzwold;&lt;br /&gt;
			tmpArray2[lzwnext].value = c;&lt;br /&gt;
			lzwnext++;&lt;br /&gt;
&lt;br /&gt;
			lzwold = lzwnew;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	dstLength = dstOffset;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
int main(int argc, char **argv)&lt;br /&gt;
{&lt;br /&gt;
	int length;&lt;br /&gt;
	unsigned char *fileInMem;&lt;br /&gt;
&lt;br /&gt;
	if (argc&amp;lt;2) {&lt;br /&gt;
		return 1;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	fileInMem = loadFile(argv[1], &amp;amp;length);&lt;br /&gt;
	if (fileInMem==NULL) {&lt;br /&gt;
		return 1;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	re1_depack(fileInMem, length);&lt;br /&gt;
&lt;br /&gt;
	/* Now you have the decompressed file at dstPointer */&lt;br /&gt;
	/*  and length is dstLength */&lt;br /&gt;
&lt;br /&gt;
	free(fileInMem);&lt;br /&gt;
&lt;br /&gt;
	return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Foxtrot</name></author>	</entry>

	</feed>