Advertisement
Slyfoxx724

extra1.c

Dec 7th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. 1 #include <stdio.h>
  2. 2 #include <stdlib.h>
  3. 3
  4. 4 int main (int argc, const char *argv[])
  5. 5 {
  6. 6 char cmd[100];
  7. 7
  8. 8 char path[] = "/home/faculty/skoss/cse121/t.sykes/";
  9. 9
  10. 10 sprintf(cmd, "cat %s%s", path, argv[1]);
  11. 11 system(cmd);
  12. 12
  13. 13
  14. 14 return 0;
  15. 15 }
  16. 16
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement