home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / libftp / part01 / FtpClose.c < prev    next >
C/C++ Source or Header  |  1993-07-13  |  239b  |  16 lines

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpClose(FTP *sock)
  4. {
  5.   int i;
  6.   String S1;
  7.   
  8.   fclose(sock->data);
  9.  
  10.   if ((i=FtpGetMessage(sock,S1))==QUIT)
  11.     return EXIT(sock,QUIT);
  12.   if ( i != 226 )
  13.     return EXIT(sock,-i);
  14.   return EXIT(sock,i);
  15. }
  16.