This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ZLIB : Compress and uncompress a file


On Fri, Feb 08, 2008 at 03:54:06PM +0100, Emmanuel Coullien wrote:
> Hi,
> 
> Is it possible to compress / uncompress a file on a File System (RAMFS
> or JFFS) with the ZIP format using the package /services/compress/zlib

I've never tried it, but probably. You should be able to do

gzopen(path, mode)
gzread (file, buf, len)
gzclose(file)

or

gzopen(path, mode)
gzwrite (file, buf, len)
gzclose(file)

See

http://www.zlib.net/manual.html

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]