The ftpver() call stores the string containing the FTP API version.
Syntax
#include <ftpapi.h> int ftpver(buf, buflen) char *buf; int buflen;
Parameters
buf
Description
The ftpver() call stores the string containing the FTP API version. The string is truncated to fit into the buffer if it is longer than the buffer length. The returned string is always null-terminated.
Return Values
The value of 0 when successful. The value of -1 when the complete version string could not be copied because the buffer length was too small.
Examples
int rc;rc = ftpver(verBuf, bufLen);
After the ftpver() call, the buffer contains the version number.