#include "common/head.h"
int main(int argc, char **argv)
{
if(argc != 3)
{
fprintf(stderr, "Method: %s file1 file2\n", argv[0];
exit(1);
}
int fd, fd_copy;
if( (fd = open(argv[1], O_RDONLY)) < 0)
{
perror("open");
exit(1);
}
return 0;
}
文件基本操作
于 2022-02-23 21:46:33 首次发布