home *** CD-ROM | disk | FTP | other *** search
- #include "FtpLibrary.h"
-
- main(int a,char **b)
- {
- FILE *out,*in;
- int c;
-
-
- if ( a != 3 )
- {
- fprintf(stderr,
- "Usage: %s node/user/pass:input-file node/user/pass:out-file\n",
- b[0]);
- exit(1);
- }
- if ((in=FtpFullOpen(b[1],"r"))==NULL)
- perror(b[1]),exit(1);
- if ((out=FtpFullOpen(b[2],"w"))==NULL)
- perror(b[2]),exit(1);
-
-
- while((c=getc(in))!=EOF)
- putc(c,out);
- FtpFullClose(in);
- FtpFullClose(out);
- }
-