Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!mcsun!ukc!axion!vision!chris From: chris@vision.uucp (Chris Davies) Newsgroups: comp.mail.elm Subject: Re: Compressed folders Message-ID: <1991Mar25.193143.9442@vision.uucp> Date: 25 Mar 91 19:31:43 GMT References: <9103210518.aa00528@maria.wustl.edu> Reply-To: chris@vision.UUCP (Chris Davies) Organization: VisionWare Ltd., Leeds, UK Lines: 34 In some article (which doesn't seem to be on this system) mike@MARIA.WUSTL.EDU writes: >Has anyone worked with some way for elm to save/handle compressed folders? There was some code posted a few months ago which allowed a program to read and write compressed files through the same (sort of) interface as ordinary files - ie fopen(), fclose()... Perhaps elm could use this? The author was Graham Toal . Newsgroup alt.sources. Archive-name zlib.shr Article message-id <1422@tharr.UUCP> dated 15 Nov 90 00:59:40 GMT. An extract from the file follows - > This implementation supplies 'z' versions of fopen, fputc, feof and fclose > to be used as direct substitutes for the originals; it would be cleaner > and more transparent if the decompress filter were hidden under the > real stdio procedures. An extra call zfilter() is supplied to convert > an already-opened stream into a z-stream: see the example at the end > of this file. > > If a file opened by zfopen() was not compressed, the files contents are > still recovered correctly at the low expense of an extra procedure call > per byte. This makes the routines more generally usable - they can be > left in production programs which can be speeded up in the field by > compressing selected input files(*); also, files can be compressed or > not selectively depending on whether the compression makes them > smaller or not - code accessing the files does not need to know. Chris -- VISIONWARE LTD | UK: chris@vision.uucp JANET: chris%vision.uucp@ukc 57 Cardigan Lane | US: chris@vware.mn.org BANGNET: ...!ukc!vision!chris LEEDS LS4 2LE, England | VOICE: +44 532 788858 FAX: +44 532 304676 -------------- "VisionWare: The home of DOS/UNIX/X integration" -------------