12 <concept id="GUID-4CC4D912-810B-4542-AFCD-58CEE8E0128C" xml:lang="en"><title>Open |
12 <concept id="GUID-4CC4D912-810B-4542-AFCD-58CEE8E0128C" xml:lang="en"><title>Open |
13 C libz Example</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 C libz Example</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
14 <p>The example demonstrates how to use the libz library to compress a file |
14 <p>The example demonstrates how to use the libz library to compress a file |
15 and decompress it. The library can compress and decompress any kind of file |
15 and decompress it. The library can compress and decompress any kind of file |
16 (txt, doc, xls, xml, mpeg, ppt, mp3 etc). </p> |
16 (txt, doc, xls, xml, mpeg, ppt, mp3 etc). </p> |
17 <section id="GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-8-1-11-1-1-5-1-3-1-11-1-12-1-2-2"><title>Download</title> <p>Click |
17 <section id="GUID-026FD8D6-6C4A-5958-B289-775D4AE1E756-GENID-1-10-1-11-1-1-5-1-3-1-11-1-11-1-2-2"><title>Download</title> <p>Click |
18 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-4e9f70e8-96f8-45be-90fc-00c9071cf562.zip" scope="external"> openclibz.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-4e9f70e8-96f8-45be-90fc-00c9071cf562.html" scope="peer">browse</xref> to view the example code. </p> </section> |
18 on the following link to download the example: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/zips/guid-4e9f70e8-96f8-45be-90fc-00c9071cf562.zip" scope="external"> openclibz.zip</xref></p><p>Click: <xref href="guid-6013a680-57f9-415b-8851-c4fa63356636/guid-4e9f70e8-96f8-45be-90fc-00c9071cf562.html" scope="peer">browse</xref> to view the example code. </p> </section> |
19 <section id="GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-8-1-11-1-1-5-1-3-1-11-1-12-1-2-3"><title>Design and |
19 <section id="GUID-7E7C4564-B10E-41F9-8A9D-D8A6C5E9C51C-GENID-1-10-1-11-1-1-5-1-3-1-11-1-11-1-2-3"><title>Design and |
20 Implementation</title> <p>The following sections provide more information |
20 Implementation</title> <p>The following sections provide more information |
21 about the steps that the example performs. </p> <p><b>Capabilities</b> </p>Program |
21 about the steps that the example performs. </p> <p><b>Capabilities</b> </p>Program |
22 capabilities are defined in <filepath>openclibz.mmp</filepath>: <codeph>CAPABILITY |
22 capabilities are defined in <filepath>openclibz.mmp</filepath>: <codeph>CAPABILITY |
23 None</codeph><p><b>Implementation details of EXE</b> </p>This example is a |
23 None</codeph><p><b>Implementation details of EXE</b> </p>This example is a |
24 console based application. This application can be launched from the icon |
24 console based application. This application can be launched from the icon |
55 application must provide more input and consume the output (providing more |
55 application must provide more input and consume the output (providing more |
56 output space) before each call. </p></section> |
56 output space) before each call. </p></section> |
57 <section id="GUID-D72E3F44-9925-456B-9B1D-FBCBAC2548DA"><b>APIs Used</b><p><codeph>compress</codeph>, <codeph>uncompress</codeph>, <codeph>gzopen</codeph>, <codeph>gzclose</codeph>, <codeph>gzread</codeph>, <codeph>gzwrite</codeph>, <codeph>gzerror</codeph> from |
57 <section id="GUID-D72E3F44-9925-456B-9B1D-FBCBAC2548DA"><b>APIs Used</b><p><codeph>compress</codeph>, <codeph>uncompress</codeph>, <codeph>gzopen</codeph>, <codeph>gzclose</codeph>, <codeph>gzread</codeph>, <codeph>gzwrite</codeph>, <codeph>gzerror</codeph> from |
58 libz library</p><p> <codeph>fopen</codeph>, <codeph>fclose</codeph>, <codeph>fread</codeph>, <codeph>fwrite</codeph>, <codeph>mmap</codeph>, <codeph>munmap</codeph>, <codeph>fstat</codeph>, <codeph>unlink</codeph>, <codeph>printf</codeph>, <codeph>scanf</codeph> from |
58 libz library</p><p> <codeph>fopen</codeph>, <codeph>fclose</codeph>, <codeph>fread</codeph>, <codeph>fwrite</codeph>, <codeph>mmap</codeph>, <codeph>munmap</codeph>, <codeph>fstat</codeph>, <codeph>unlink</codeph>, <codeph>printf</codeph>, <codeph>scanf</codeph> from |
59 libc library </p></section> |
59 libc library </p></section> |
60 <section id="GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-8-1-11-1-1-5-1-3-1-11-1-12-1-2-5"><title>Building and |
60 <section id="GUID-67A72761-1D92-46D1-B1C9-7455978BDE4E-GENID-1-10-1-11-1-1-5-1-3-1-11-1-11-1-2-5"><title>Building and |
61 Using</title> <p>The <xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">Symbian |
61 Using</title> <p>The <xref href="GUID-3100800B-B2F7-50EF-BD4C-3C345ECCB2A5.dita">Symbian |
62 build process</xref> describes how to build this example application. </p> To |
62 build process</xref> describes how to build this example application. </p> To |
63 build the example application, go to the openclibz\group directory and build |
63 build the example application, go to the openclibz\group directory and build |
64 the application. The definition for the whole application can be found in |
64 the application. The definition for the whole application can be found in |
65 the bld.inf file in the group subdirectory of the applications main directory. </section> |
65 the bld.inf file in the group subdirectory of the applications main directory. </section> |