S60 Open C
Examples for Open C Libraries

Examples for Open C Libraries

Table of Contents

Libz Ex
MMP File for Libz Ex
Source Code for Libz Ex

 


Libz Ex

This example demonstrates how to use libz library to compress and decompress files. Any kind of file (txt, doc, xls, xml, mpeg, ppt, mp3 etc) can be compressed.

 


MMP File for Libz Ex

TARGET		OpenCLibz.exe
TARGETTYPE    	exe
UID           		0x100039CE 0xA000131D
VENDORID      	0

// No capabilities needed by this application
CAPABILITY		None

SOURCEPATH      ..\data
START RESOURCE  OpenCLibz_reg.rss
#ifdef WINSCW
TARGETPATH 	    \private\10003a3f\apps
#else
TARGETPATH 	    \private\10003a3f\import\apps
#endif
END //RESOURCE

SOURCEPATH      ..\src
SOURCE          OpenCLibz.c Compress.c UnCompress.c

USERINCLUDE     ..\inc

SYSTEMINCLUDE   \epoc32\include
SYSTEMINCLUDE   \epoc32\include\stdapis

//  If user is sure about small buffer space he can comment out the next 
//  statement   to avoid unnecessary waste of time in mmap check.

MACRO USE_MMAP  
// Using main() as entry point

STATICLIBRARY       libcrt0.lib
LIBRARY         	  euser.lib
LIBRARY         	  libc.lib
LIBRARY            	 libz.lib
LANG            		SC

 


Source Code for Libz Ex

Go to this location \nokia_plugin\openc\s60opencex\openclibz to view the source code for this example.

NOTE: This code has been tested on Carbide.

Give feedback of this article


Copyright ©2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user.