Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

zip-pascal

Pascal binding for a portable, simple zip library.

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

zip-pascal

Pascal binding for a portable, simple zip library.

Example

pascal
program main;

{$linklib c}
{$linklib zip}

uses zip;

const
   content : Pchar = 'test content'; 
var
   z : ^zip_t;

begin
   z := zip_open('/tmp/pascal.zip', 6, 'w');

   zip_entry_open(z, 'test');

   zip_entry_write(z, content, strlen(content));
   zip_entry_close(z);
   zip_close(z);
end.

References

License

This repo is released under the MIT License.