Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Creacion de un link simbolico en C , ln -s real[1] simbolico[2]
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- int main(int argc, char* argv[])
- {
- //argv[1] real , arv[2] simbolico
- int sl = symlink(argv[1], argv[2]);
- if (sl == 0) {printf("OK %s --> %s ",argv[2],argv[1]);}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement