Questions tagged [file-link]

31 questions
-2
votes
1 answer

Using execvp or execlp with a flag?

I'm trying to write a C program to soft-link 2 files on Unix. In Unix, this command would be: ln -s oldfile newlink So I wrote a code to create a char * array of the arguments like so: char *args[4]; args[0] = "ln"; args[1] = "-s"; args[2] =…
John Stawket
  • 17
  • 2
  • 9
1 2
3