Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- strcpy(buf, "gunzip -c "); // First part of command
- strcat(buf, buf_tmp); // Concatenate file name to be decompressed
- strcat(buf, " > htdocs/temp/"); // Reroute output of command to path
- strcat(buf, name); // Name of output file
- strcat(buf, ".html"); // Extension of output file
- system(buf); // Command sent to system should look something like this. gunzip -c htdocs/file.gz > htdocs/temp/file.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement