|
#1
| |||
| |||
| Unzip function
Hi, How can I unzip a file from C - code? Alternativley, How can I create a shell file with UNZIP darwin command, and execute it from my c-code? Thanks |
|
#2
| ||||
| ||||
|
To run the terminal command "unzip" from a C program, you'll want to look at the family of "exec" commands: http://www.opengroup.org/onlinepubs/...ions/exec.html
__________________ Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb http://www.jeffhoppe.com |
|
#3
| |||
| |||
| call - system
I got the answer - system("unzip filename"); |
![]() |
| Bookmarks |
| Tags |
| c-code, darwin, unzip |
| Thread Tools | |
|
|