---
name: "FtpClose"
section: "3"
platform: "linux"
package: "ftplib-dev"
version: "3.1-1-9"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/FtpClose"
---

# FtpClose(3)

Close a data connection.

## NAME

FtpClose - Close a data connection.

## SYNOPSIS

**#include \<ftplib.h\>**\

**int FtpClose(netbuf \****nData***);**

## PARAMETERS

- **nData**

  A handle returned by FtpAccess().

## DESCRIPTION

Closes the data connection specified by 'nData' and frees associated resources.

## RETURN VALUE

Returns 1 if successful or 0 on error.
