diff options
author | peter <peter@FreeBSD.org> | 1995-12-30 19:02:48 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-12-30 19:02:48 +0000 |
commit | ab124e78b0271ddb904b761b31e5c9a0cf24e070 (patch) | |
tree | 0cf1447720c45721ed3d214a4eaaa6834bda155d /lib/libftp/doc/example.c | |
parent | 15748830d0fcd29294a1969a1012655e74908c1e (diff) | |
download | FreeBSD-src-ab124e78b0271ddb904b761b31e5c9a0cf24e070.zip FreeBSD-src-ab124e78b0271ddb904b761b31e5c9a0cf24e070.tar.gz |
recording cvs-1.6 file death
Diffstat (limited to 'lib/libftp/doc/example.c')
-rw-r--r-- | lib/libftp/doc/example.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/libftp/doc/example.c b/lib/libftp/doc/example.c deleted file mode 100644 index 0606592..0000000 --- a/lib/libftp/doc/example.c +++ /dev/null @@ -1,51 +0,0 @@ - -/* 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); - -} |