69,382
社区成员
发帖
与我相关
我的任务
分享
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#include<errno.h>
int main(int argc, char *argv[])
{
int ret_code;
if(argc != 1)
{
printf("sorry input error \n");
exit(1);
}
printf("%d\n", errno);
ret_code = link("t1.txt", "t2.txt");
if(ret_code)
{
printf("link file error\n");
}
printf("%d\n", errno);
exit(0);
}