📄 copy.cpp
字号:
// Created:10-10-98
// By Jeff Connelly
// File copying.
#include "stdafx.h"
#define EXPORTING
#include "comprlib.h"
#include "copy.h"
// Note: Byte-by-byte copying is slow. If you were writing to a file, try:
// long len = filelength(fileno(source_file));
// char* buf = xmalloc(len);
// fread (buf, 1, len, source_file)
// fwrite (buf, 1, len, dest_file);
// That would eliminate repeated function calls and ultimatly be faster.
void EXPORT copy()
{
while (!end_of_data())
write_byte(read_byte());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -