home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume38
/
libftp
/
part01
/
FtpCommand.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-13
|
391b
|
24 lines
#include "FtpLibrary.h"
STATUS FtpCommand(FTP * con , char * command , char * param , int list)
{
String S1;
int i;
sprintf(S1,command,param);
if ( FtpSendMessage(con,S1) == QUIT )
return EXIT(con,QUIT);
if ( (i=FtpGetMessage(con,S1)) == QUIT )
return EXIT(con,QUIT);
if ( ! FtpGood1 ( i , &list ))
return EXIT(con,-i);
return EXIT(con,i);
}