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