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

📄 copyback.c

📁 Free Chat beta release 2 fot linux,采用C语言写的运行在linux下的聊天室程序
💻 C
字号:
/*  copyback.c    For Free Chat    By Bill Kendrick  kendrick@zippy.sonoma.edu  http://zippy.sonoma.edu/kendrick/    September 29, 1996 - June 10, 1997*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include "readline.h"#include "copyback.h"#include "myopen.h"void copyback(char * dest, char * source){  int c;  FILE * fi, * fo;    fo = myopen(dest, "w");  if (fo == NULL)    {      printf("System is down!\n");      exit(0);    }    fi = myopen(source, "r");  if (fi == NULL)    {      printf("System is down!\n");      exit(0);    }    do    {      c = fgetc(fi);      if (c != EOF)	fputc(c, fo);    }  while (c != EOF);    fclose(fi);  fclose(fo);}

⌨️ 快捷键说明

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