今天的学习内容在我上传的资源里面
我提供下链接供参考
http://download.csdn.net/download/lsy888520/10125348
相关代码
我提供下链接供参考
http://download.csdn.net/download/lsy888520/10125348
相关代码
1.C
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char **argv)
{
if(argc < 3)
{
printf("please input two fileArgv!\nfirst to copySrc,second to pasteSrc\n");
return -1;
}
int filedes1 = open(argv[1], O_RDONLY);
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
int main(int argc, char **argv)
{
if(argc < 3)
{
printf("please input two fileArgv!\nfirst to copySrc,second to pasteSrc\n");
return -1;
}
int filedes1 = open(argv[1], O_RDONLY);