⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 copy.c

📁 这是一个典型的web的实验
💻 C
字号:
/* copy.c: * * Copyright (C) 1998  Kenneth Albanowski <kjahds@kjahds.com>, * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. */#include <stdio.h>static char copybuf[16384];extern int TIMEOUT;int copy(FILE *read_f, FILE *write_f){  int n;  int wrote;  alarm(TIMEOUT);  while (n = fread(copybuf,1,sizeof(copybuf),read_f)) {    alarm(TIMEOUT);    wrote = fwrite(copybuf,n,1,write_f);    alarm(TIMEOUT);    if (wrote < 1)    	return -1;  }  alarm(0);  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -