当前位置: 技术问答>linux和unix
关于COPY程序的疑问?COPY后有乱码
来源: 互联网 发布时间:2016-12-27
本文导语: 本帖最后由 jj89816657 于 2011-09-01 22:42:21 编辑 code=C/C++]#include #include #include #include #include #include #include #define bytes 1024 int main(int argc,char *argv[]) { int fr_p,to_p; char buffer[bytes]; int read_bytes,write_bytes; fr_p= open(arg...
#include
#include
#include
#include
#include
#include
#define bytes 1024
int main(int argc,char *argv[])
{
int fr_p,to_p;
char buffer[bytes];
int read_bytes,write_bytes;
fr_p= open(argv[1],O_RDONLY,S_IRUSR | S_IWUSR);
to_p= open(argv[2],O_WRONLY | O_CREAT,S_IRUSR | S_IWUSR);
if(fr_p