delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/16/05:07:35

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3014ECA0B@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Compressing
Date: Fri, 16 Jul 1999 09:46:01 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

Mike3465 writes:
> how do you compress a file using allegro?

PACKFILE *f = pack_fopen(filename, F_WRITE_PACKED);
pack_fwrite(data, size, f);
pack_fclose(f);

See the docs for details.

Alternatively you can use the grabber to compress a datafile,
or the pack utility to compress any existing file.


	Shawn Hargreaves.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019