Examples for Open C Libraries |
|
|
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.
|
|
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
| ©Nokia 2008 |
|