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

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpCommand(FTP * con , char * command , char * param , int list)
  4. {
  5.   String S1;
  6.   int i;
  7.   
  8.   sprintf(S1,command,param);
  9.  
  10.   if ( FtpSendMessage(con,S1) == QUIT )
  11.     return EXIT(con,QUIT);
  12.   
  13.   if  ( (i=FtpGetMessage(con,S1)) == QUIT )
  14.     return EXIT(con,QUIT);
  15.   
  16.   if ( ! FtpGood1 ( i , &list ))
  17.     return EXIT(con,-i);
  18.  
  19.   return EXIT(con,i);
  20. }
  21.   
  22.   
  23.    
  24.