The ftplogoff() call closes all current connections. An application must call this before terminating.
Syntax
#include <ftpapi.h> void ftplogoff()