Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zip file using C program

Tags:

c

zip

Is there any option to zip the file using C programme without using any external application (like Zip..)?

like image 409
ManishB Avatar asked Dec 22 '22 01:12

ManishB


2 Answers

Of course, try using zlib. Or other libraries for compression. You can also code the compression algorithm yourself, but that might be too time consuming. Since you did not specify why do you need this, i can't give you a better answer.

like image 122
PeterK Avatar answered Jan 09 '23 00:01

PeterK


Please find the link for some of the compression libraries available. It depends on the system you are using and the features you want. Zlib is one which i would recommend because of the configurable features and user manual.

like image 41
Praveen S Avatar answered Jan 09 '23 01:01

Praveen S