home *** CD-ROM | disk | FTP | other *** search
- #include "FtpLibrary.h"
-
- STATUS FtpDebug(FTP *ftp)
- {
- STATUS FtpDebugDebug(),
- FtpDebugError();
-
- FtpSetDebugHandler(ftp,FtpDebugDebug);
- FtpSetErrorHandler(ftp,FtpDebugError);
- }
-
- FtpDebugDebug(FTP *ftp,int n, char * Message)
- {
- fprintf(stderr,"DEBUG:: %s\n",Message);
- return 1;
- }
-
- FtpDebugError(FTP *ftp,int n, char * Message)
- {
- fprintf(stderr,"Abort:: %s\n",Message);
- exit(1);
- }
-
-