home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume38 / libftp / part01 / FtpDebug.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-13  |  400 b   |  24 lines

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpDebug(FTP *ftp)
  4. {
  5.   STATUS FtpDebugDebug(),
  6.          FtpDebugError();
  7.  
  8.   FtpSetDebugHandler(ftp,FtpDebugDebug);
  9.   FtpSetErrorHandler(ftp,FtpDebugError);
  10. }
  11.  
  12. FtpDebugDebug(FTP *ftp,int n, char * Message)
  13. {
  14.   fprintf(stderr,"DEBUG:: %s\n",Message);
  15.   return 1;
  16. }
  17.  
  18. FtpDebugError(FTP *ftp,int n, char * Message)
  19. {
  20.   fprintf(stderr,"Abort:: %s\n",Message);
  21.   exit(1);
  22. }
  23.  
  24.