📄 example.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 + -