Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1.     strcpy(buf, "gunzip -c "); // First part of command
  2.     strcat(buf, buf_tmp); // Concatenate file name to be decompressed
  3.     strcat(buf, " > htdocs/temp/"); // Reroute output of command to path
  4.     strcat(buf, name); // Name of output file
  5.     strcat(buf, ".html"); // Extension of output file
  6.     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