| 1 |
/* |
| 2 |
liboftp: this is an FTP library to simplify the work to a Developer |
| 3 |
who want to work with FTP servers (RFC 959). |
| 4 |
|
| 5 |
Copyright (c) 2009 hirohito higashi. All rights reserved. |
| 6 |
This file is distributed under BSD license. |
| 7 |
*/ |
| 8 |
|
| 9 |
|
| 10 |
/***** Feature test switches ************************************************/ |
| 11 |
/***** System headers *******************************************************/ |
| 12 |
/***** Local headers ********************************************************/ |
| 13 |
#include "liboftp.h" |
| 14 |
#include "sub.h" |
| 15 |
|
| 16 |
|
| 17 |
/***** Constat values *******************************************************/ |
| 18 |
|
| 19 |
|
| 20 |
/***** Macros ***************************************************************/ |
| 21 |
/***** Typedefs *************************************************************/ |
| 22 |
/***** Function prototypes **************************************************/ |
| 23 |
/***** Local variables ******************************************************/ |
| 24 |
/***** Global variables *****************************************************/ |
| 25 |
/***** Signal catching functions ********************************************/ |
| 26 |
/***** Local functions ******************************************************/ |
| 27 |
/***** Global functions *****************************************************/ |
| 28 |
|
| 29 |
/****************************************************************************/ |
| 30 |
/*! ��������������������������������� |
| 31 |
* |
| 32 |
*@param ftp LIBOFTP��������������������� |
| 33 |
*@param fname ������������������������������ |
| 34 |
*@param buf ������������������������������ |
| 35 |
*@param bufsiz ��������������������� |
| 36 |
*@retval int ������������������������������������������������������������������ |
| 37 |
*@note |
| 38 |
*/ |
| 39 |
int ftp_get_buffer( LIBOFTP *ftp, const char *fname, char *buf, int bufsiz ) |
| 40 |
{ |
| 41 |
return ftp_get_buffer_main( ftp, "RETR", fname, buf, bufsiz ); |
| 42 |
} |