Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
ln.c 264 Bytes
Copy Edit Raw Blame History
rsc authored 2007-08-22 05:54 . add ln
#include "types.h"
#include "stat.h"
#include "user.h"
int
main(int argc, char *argv[])
{
if(argc != 3){
printf(2, "Usage: ln old new\n");
exit();
}
if(link(argv[1], argv[2]) < 0)
printf(2, "link %s %s: failed\n", argv[1], argv[2]);
exit();
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化