17 lines
324 B
C
Executable file
17 lines
324 B
C
Executable file
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char * argv[]) {
|
|
if(argc < 3) {
|
|
fprintf(stderr, "%s: missing file operand\n", argv[0]);
|
|
exit(1);
|
|
}
|
|
|
|
if(argc > 3) {
|
|
fprintf(stderr, "%s: extra operand specified\n", argv[0]);
|
|
exit(1);
|
|
}
|
|
|
|
return link(argv[1], argv[2]);
|
|
}
|