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

📄 example.c

📁 linux下ftp的库源码
💻 C
字号:
static char rcsid[] = "$Id: example.c,v 5.0 1995/12/10 10:37:11 orel Exp $";/*	$Log: example.c,v $ * Revision 5.0  1995/12/10  10:37:11  orel * LIBFTP Version 5.0 (Distributed revision) **//* Include standard libftp's header */#include <FtpLibrary.h> main(int argc, char *argv[]){  FILE *input,*output;  int c;    if (argc<3)    exit(fprintf(stderr,"Usage: %s input-file output-file\n",argv[0]));  FtplibDebug(yes);    if ((input=Ftpfopen(argv[1],"r"))==NULL)    {      perror(argv[1]);      exit(1);    }    if ((output=Ftpfopen(argv[2],"w"))==NULL)    {      perror(argv[2]);      exit(1);    }    while ( (c=getc(input)) != EOF &&  (putc(c,output)!=EOF) );  if (ferror(input))    {      perror(argv[1]);      exit(1);    }    if (ferror(output))    {      perror(argv[1]);      exit(1);    }  Ftpfclose(input);  Ftpfclose(output);  exit(0);  }

⌨️ 快捷键说明

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